Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM ubuntu:xenial

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client golang-go ca-certificates
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y postgresql-client golang-1.13-go ca-certificates git

ENV GOPATH=/go
ADD . /go/src/github.com/CanonicalLtd/serial-vault

WORKDIR /go/src/github.com/CanonicalLtd/serial-vault
# get dependencies
RUN go get ./...
RUN /usr/lib/go-1.13/bin/go get ./...

COPY ./docker-compose/settings.yaml /go/src/github.com/CanonicalLtd/serial-vault
COPY ./docker-compose/docker-entrypoint.sh /
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
db:
image: postgres
image: postgres:9
env_file:
- ./env
web:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ sed -i \
-e "s/KEYSTORE_SECRET/$KEYSTORE_SECRET/g" \
settings.yaml

go run cmd/serial-vault/main.go -mode=admin &
go run cmd/serial-vault/main.go -mode=signing
/usr/lib/go-1.13/bin/go run cmd/serial-vault/main.go -mode=admin &
/usr/lib/go-1.13/bin/go run cmd/serial-vault/main.go -mode=signing