forked from letsencrypt/boulder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roll forward "Run Travis tests in Docker (letsencrypt#1830)" (letsenc…
…rypt#1838) That change broke the certbot tests because it switched to a MariaDB 10.1-specific syntax. certbot/certbot#3058 changes the certbot tests to use Boulder's docker-compose.yml, so they will get MariaDB 10.1 automatically.
- Loading branch information
Showing
17 changed files
with
105 additions
and
99 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
bin | ||
tags | ||
.git | ||
test/js |
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 |
---|---|---|
@@ -1,34 +1,24 @@ | ||
FROM golang:1.5 | ||
|
||
MAINTAINER J.C. Jones "[email protected]" | ||
MAINTAINER William Budington "[email protected]" | ||
|
||
# Install dependencies packages | ||
RUN apt-get update && apt-get install -y \ | ||
libltdl-dev \ | ||
mariadb-client-core-10.0 \ | ||
nodejs \ | ||
rsyslog \ | ||
softhsm \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Install port forwarder, database migration tool and go lint | ||
RUN go get -v \ | ||
github.com/jsha/listenbuddy \ | ||
bitbucket.org/liamstask/goose/cmd/goose \ | ||
github.com/golang/lint/golint | ||
FROM letsencrypt/boulder-tools:latest | ||
|
||
# Boulder exposes its web application at port TCP 4000 | ||
EXPOSE 4000 4002 4003 8053 8055 | ||
|
||
ENV GO15VENDOREXPERIMENT 1 | ||
ENV GOBIN /go/src/github.com/letsencrypt/boulder/bin | ||
ENV PATH /go/bin:/go/src/github.com/letsencrypt/boulder/bin:/usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/ | ||
ENV GOPATH /go | ||
|
||
WORKDIR /go/src/github.com/letsencrypt/boulder | ||
RUN adduser --disabled-password --gecos "" --home /go/src/github.com/letsencrypt/boulder -q buser | ||
RUN chown -R buser /go/ | ||
|
||
ENTRYPOINT [ "./test/entrypoint.sh" ] | ||
WORKDIR /go/src/github.com/letsencrypt/boulder | ||
|
||
# Copy in the Boulder sources | ||
COPY . /go/src/github.com/letsencrypt/boulder | ||
COPY . . | ||
RUN mkdir bin | ||
RUN go install ./cmd/rabbitmq-setup | ||
COPY ./test/certbot /go/bin/ | ||
|
||
RUN GOBIN=/go/src/github.com/letsencrypt/boulder/bin go install ./... | ||
RUN chown -R buser /go/ | ||
|
||
ENTRYPOINT [ "./test/entrypoint.sh" ] |
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 |
---|---|---|
@@ -1,27 +1,42 @@ | ||
boulder: | ||
build: . | ||
dockerfile: Dockerfile | ||
environment: | ||
FAKE_DNS: 127.0.0.1 | ||
volumes: | ||
# Cache built .a files for faster repeat runs | ||
- /go/pkg/ | ||
- /tmp:/tmp | ||
net: bridge | ||
extra_hosts: | ||
- le.wtf:127.0.0.1 | ||
- boulder:127.0.0.1 | ||
ports: | ||
- 4000:4000 | ||
- 4002:4002 | ||
- 4003:4003 | ||
- 4000:4000 # ACME | ||
- 4002:4002 # OCSP | ||
- 4003:4003 # OCSP | ||
- 4500:4500 # ct-test-srv | ||
- 8000:8000 # debug ports | ||
- 8001:8001 | ||
- 8002:8002 | ||
- 8003:8003 | ||
- 8004:8004 | ||
- 8055:8055 # dns-test-srv updates | ||
- 9380:9380 # mail-test-srv | ||
- 9381:9381 # mail-test-srv | ||
links: | ||
- bmysql:boulder-mysql | ||
- brabbitmq:boulder-rabbitmq | ||
extra_hosts: | ||
- boulder:127.0.0.1 | ||
bmysql: | ||
container_name: boulder-mysql | ||
image: mariadb:10.0 | ||
image: mariadb:10.1 | ||
net: bridge | ||
environment: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | ||
command: mysqld --bind-address=0.0.0.0 | ||
log_driver: none | ||
brabbitmq: | ||
container_name: boulder-rabbitmq | ||
image: rabbitmq:3 | ||
net: bridge | ||
environment: | ||
RABBITMQ_NODE_IP_ADDRESS: "0.0.0.0" | ||
log_driver: "none" | ||
log_driver: none |
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
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,4 @@ | ||
#!/bin/bash | ||
# | ||
# Temporary shim until the letsencrypt Debian package ships `certbot` | ||
exec letsencrypt "$@" |
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
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,4 @@ | ||
PATH=/go/bin:/go/src/github.com/letsencrypt/boulder/bin:/usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/ | ||
GOPATH=/go | ||
GOBIN=/go/src/github.com/letsencrypt/boulder/bin | ||
GO15VENDOREXPERIMENT=1 |
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
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
Oops, something went wrong.