Dockerfile/docker-compose.yml cleanups (#2682)

Removes the reliance on `$GOPATH` being set in order to use `docker-compose`. Also removes
a few unnecessary commands from the `Dockerfile` that were no longer doing anything. If you
get weird errors along the lines of `oci runtime error: cannot chdir to ...` you will need to
`docker-compose rm; docker-compose build; docker-compose up` to fix them.

Fixes #2660.
This commit is contained in:
Jacob Hoffman-Andrews 2017-04-20 09:08:55 -07:00 committed by GitHub
commit eccca3ccd4
2 changed files with 1 additions and 4 deletions

View File

@ -7,15 +7,12 @@ EXPOSE 4000 4002 4003 4430 8053 8055
ENV PATH /usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/
ENV GOPATH /go
ENV GO15VENDOREXPERIMENT=1
RUN adduser --disabled-password --gecos "" --home /go/src/github.com/letsencrypt/boulder -q buser
RUN chown -R buser /go/
WORKDIR /go/src/github.com/letsencrypt/boulder
# Copy in the Boulder sources
COPY . .
RUN mkdir bin
RUN chown -R buser /go/

View File

@ -6,7 +6,7 @@ boulder:
PKCS11_PROXY_SOCKET: tcp://boulder-hsm:5657
BOULDER_CONFIG_DIR: test/config
volumes:
- $GOPATH:/go/
- .:/go/src/github.com/letsencrypt/boulder
- /tmp:/tmp
net: bridge
extra_hosts: