Commit Graph

23 Commits

Author SHA1 Message Date
Pavel Paulau 92c1750d1a Merge branch 'master' into 1056 2015-12-14 18:32:35 -08:00
pavel-paulau 71de81e1d2 Install missing port forwarder (listenbuddy)
Fixes #1059.
2015-10-29 20:34:06 -07:00
pavel-paulau 21c7724922 Remove Let's Encrypt clients from Dockerfile
Resolves #1056.
2015-10-29 08:32:14 -07:00
Jessica Frazelle 121a98f438
update run-docker.sh and readme
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-10-21 12:55:18 -07:00
Jessica Frazelle 4d81e3090d
Cleanup of Docker Dev Playground
- Separated RabbitMq into it's own container
- some various Dockerfile-isms cleanup
- updated routes to linked containers
- removed nodejs, I have not been able to figure out why it was being installed
    (so this could be something that is actually needed)

To setup a dev environment:

You now need `docker-compose`, but running the setup with all the
configurations is as simple as:

```
$ docker-compose build
$ docker-compose up
```

Then you can even run the `test.sh` in the container with:

```
$ docker exec -it boulder_boulder_1 bash
root@container $ ./test.sh
```

This is just an _initial_ first pass at refactoring a bunch of this. There is
a bunch more I want to change and make better.

Also with regard to database migration taking awhile I want to try and move
the goose stuff over to the mariadb container, there is just some less savory
things I don't like about starting the db in the background then running the
migration script :/, I like to attach to the process on container start. I do
have some thoughts on a `docker exec` command in the mariadb container which
migrates the db... but trying to think of something better.

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-10-21 12:47:29 -07:00
Jacob Hoffman-Andrews 19c68a01e0 Fix Docker setup.
Add an easy script to build and run the Docker instance.
Update some out-of-date information in the README.
Add goose to the Docker image.
Remove unnecessary go install step from Dockerfile.

Allow dns-test-srv to return a hardcoded address other than localhost. This was
preventing a Dockerized Boulder from answering requests from a letsencrypt
client on the host.

Change allowLoopbackAddresses to allowRestrictedAddresses and make it cover all
the private IPv4 ranges. The host IP in Docker is commonly in the 172.* range.

Fix a couple of references to lets-encrypt-preview.

This was inspired by investigation into https://github.com/letsencrypt/boulder/issues/756.
To try and reproduce, I tried running Boulder inside a container, and found some
broken things.
2015-09-08 23:31:04 -04:00
Jeff Hodges 2f18259f47 bump Dockerfile to Go 1.5 2015-08-25 22:39:33 -07:00
Jeff Hodges b08e6e0bad use MariaDB in integration tests and start.py
This changes moves from using SQLite in the integration tests and in the
test/boulder-config.json.

It does not port the unit tests over, unfortunately. That's a much more
invasive change.

This also updates the Dockerfile to include the MariaDB and RabbitMQ
requirements of start.py as well as adjusts the CMD to expose the
boulder server to the host machine. The Dockerfile also needed to have
its Go version bumped and the test.sh had to grow some explict
"function"s.

Updates #132
2015-08-07 23:22:52 -07:00
Roland Shoemaker 0715970f11 Remove the monolith and related cruft 2015-07-29 14:03:59 -07:00
Jeff Hodges cfcd6dfc88 remove pkcs11 tag for build and test scripts
With #525 in place, we no longer need to worry about setting the pkcs11
tag everywhere.
2015-07-24 16:33:05 -07:00
Jakub Warmuz 247d18a390
Fix hyphens in letsencrypt install command.
Corresponds to https://github.com/letsencrypt/letsencrypt/pull/600.
2015-07-11 05:39:18 +00:00
Jakub Warmuz 95503a058d
Update installation command for letsencrypt client.
Corresponds to https://github.com/letsencrypt/letsencrypt/pull/598
2015-07-10 22:25:29 +00:00
William Budington 76d76d33cd Adding integration tests.
Travis:
  * Downloads the Let's Encrypt client
  * Installs system requirements for client
  * Sets up virtualenv

Dockerfile:
  * Buildout for development
  * Includes numerous pacakges needed for integration testing
    (including all of the above in Travis)

test.sh:
  * If no path is defined for the LE client
    * Download the Let's Encrypt client
    * Set up virtualenv

test/amqp-integration-test.py:
  * Run client test with sensible defaults
  * One test: auth for foo.com
2015-06-19 12:18:23 -07:00
William Budington ac89e70a3d Fix Dockerfile:
* Add dependencies
  * Fix reference to renamed boulder-config.json
  * Remove unnecessary mkdir
  * Add proper tags for `go install`
  * Run rsyslogd before boulder daemon
2015-06-15 14:15:34 -07:00
Roland Shoemaker 32ad3eaf96 add note about lexicographic order 2015-04-06 01:19:12 -07:00
Jacob Hoffman-Andrews dc68fd4fe1 Update README and remove Nut.toml. 2015-03-26 14:28:58 -07:00
J.C. Jones ccaac03eb3 Dockerfile update & don't bail out of tests early
- Also added "policy" to the test list. It got forgotten.
2015-03-25 17:11:16 -07:00
J.C. Jones 29d110cc7b Issue #50: Update Dockerfile and README for the new cmd splitup 2015-03-23 12:54:05 -07:00
J.C. Jones e604b8edb9 Update per spec
- Spec says the Challenge objects contain a field "Validated" not "Completed."
- The Challenge object says "Validated" should be omitempty, but wasn't a pointer.
  - Swapped to using pointers so it will not be "completed":"0001-01-01T00:00:00Z"
  - Sort of related to [Issue #71 in Acme-Spec](https://github.com/letsencrypt/acme-spec/issues/71)
- Remove commented-out line from Dockerfile (whoops)
2015-03-20 15:37:53 -07:00
J.C. Jones 59d449d221 Fix Dockerfile for refactor. 2015-03-16 10:53:42 -07:00
J.C. Jones 7a33e1505c Update Dockerfile to use "go install" for consistency upstream. 2015-02-17 16:25:24 -07:00
J.C. Jones 09a1c06e72 Change Dockerfile to use ENTRYPOINT. 2015-02-09 16:08:05 -07:00
J.C. Jones b662a4c8d0 Initial Docker container support.
The container hosting is at https://quay.io/repository/letsencrypt/boulder .
2015-02-03 14:35:50 -07:00