-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
819e7a7
commit 9055a90
Showing
4 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: GoCA REST API Docker test | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Go 1.15 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.15 | ||
id: go | ||
|
||
- name: Set up Docker | ||
uses: docker-practice/actions-setup-docker@v1 | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Push to GitHub Packages | ||
uses: docker/build-push-action@v2 | ||
with: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GPR_TOKEN }} | ||
registry: docker.pkg.github.com | ||
repository: kairoaraujo/goca/goca-rest-api | ||
tag_with_ref: true | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: kairoaraujo/goca:latest | ||
|
||
- name: Update repo description | ||
uses: peter-evans/dockerhub-description@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
repository: kairoaraujo/goca | ||
readme-filepath: ./DOCKER_README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# GoCA Docker Container | ||
|
||
[](https://hub.docker.com/r/kairoaraujo/goca/) | ||
|
||
|
||
GocA provides a Certificate Authority (CA) framework managing, a Simple PKI. | ||
|
||
The API Documentation is online available at http://kairoaraujo.github.io/goca/. | ||
|
||
## GoCA Docker Container | ||
|
||
GoCA Docker is HTTP Rest API that uses mainly crypto/x509 to manage Certificate Authorities and Certificates such | ||
as a simple PKI Service. | ||
|
||
> NOTE: Do not expose the GoCA HTTP REST API service directly. Use it behind to some | ||
Authentication/Authorization service. | ||
|
||
### Docker Container | ||
|
||
``` | ||
$ docker run -p 80:80 kairoaraujo/goca:tag | ||
``` | ||
|
||
### Where store the data | ||
|
||
> The GoCA data (certificate, keys, etc.) is in ``/goca/data``; make sure you have a protected volume for this data. | ||
Create a data directory on a suitable volume on your host system, e.g. /my/own/datadir. | ||
|
||
Start your GoCA container like this: | ||
|
||
```` | ||
$ docker run -p 80:80 -v /my/own/datadir:/goca/data kairoaraujo/goca:tag | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters