Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Boulder Dockerfile #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: bash

services:
- docker

before_script:
- export REPO=dockervan/boulder
# - docker pull $REPO || true

script:
- cd $VERSION
- docker build --pull -t boulder $VARIANT

after_success:
- docker tag boulder $REPO
- docker images
# - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
# - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then docker push $REPO; fi
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM golang:1-alpine

MAINTAINER Sullivan SENECHAL <[email protected]>

RUN apk add --no-cache \
bash openrc rsyslog mysql-client gcc musl-dev openssl-dev libtool

RUN apk add --no-cache --virtual .build-deps \
tar git \
&& go get github.com/jsha/listenbuddy \
&& go get bitbucket.org/liamstask/goose/cmd/goose \
&& mkdir -p /go/src/github.com/letsencrypt/boulder && cd /go/src/github.com/letsencrypt/boulder \
&& curl -L https://github.com/letsencrypt/boulder/archive/master.tar.gz | tar xz --strip-components 1 \
&& apk del .build-deps

ENV BOULDER_CONFIG /go/src/github.com/letsencrypt/boulder/test/boulder-config.json
ENV GOPATH /go/src/github.com/letsencrypt/boulder/Godeps/_workspace:$GOPATH

RUN echo $GOPATH

WORKDIR /go/src/github.com/letsencrypt/boulder

RUN sed -i -e 's#0.0.0.0/3306#mariadb/3306#' -e 's#0.0.0.0/5672#rabbitmq/5672#' -e 's#amqp://localhost#amqp://rabbitmq#' test/entrypoint.sh
RUN sed -i -e 's#127.0.0.1#mariadb#' test/create_db.sh
# https://github.com/letsencrypt/boulder/issues/1322
RUN sed -i "1s/^/SET sql_mode = '';\n/" test/drop_users.sql

EXPOSE 4000
ENTRYPOINT ["./test/entrypoint.sh"]
CMD ["./start.py"]