Commit graph

74 commits

Author SHA1 Message Date
Henrik Levkowetz 56f791a2fd Fix permission trouble writing to /dev/stderr when running within docker. Exit if running in an unexpected environment. Fixed a typo in an informational message. Refined the hanling of ~/.docker-info files. Improved the permission mods on the unpacked mysql files (matching the permissions mysql prefers).
- Legacy-Id: 10484
2015-11-14 23:06:40 +00:00
Henrik Levkowetz c8b534ffc9 Give the mysql user suitable group membership. Give the developer sudo rights.
- Legacy-Id: 10483
2015-11-14 23:03:31 +00:00
Henrik Levkowetz e72cdf4114 Provide openssh and sudo in the docker-environment.
- Legacy-Id: 10482
2015-11-14 23:02:20 +00:00
Henrik Levkowetz 952a680305 Load database through 'manage.py dbshell'. Avoids repeating username, password, etc. in several places (DRY).
- Legacy-Id: 10481
2015-11-14 23:01:40 +00:00
Henrik Levkowetz 5c008f2503 Tweaked a docker/run message.
- Legacy-Id: 10477
2015-11-14 16:16:24 +00:00
Henrik Levkowetz e8992007b6 Code refactoring.
- Legacy-Id: 10475
2015-11-14 10:32:07 +00:00
Henrik Levkowetz f8008a7ed1 Corrected the switched external:internal port mapping fields in docker/run.
- Legacy-Id: 10472
2015-11-13 18:27:20 +00:00
Henrik Levkowetz 5cd10c3152 Added support for running different containers mapping internal port 8000 to different external ports. Added additional text explaining why we won't run multiple containers from the same svn branch. Did som default value code refactoring.
- Legacy-Id: 10471
2015-11-13 17:59:30 +00:00
Henrik Levkowetz 99d6ce5710 Added a couple of progress messages.
- Legacy-Id: 10470
2015-11-13 17:49:43 +00:00
Henrik Levkowetz 51f78aa044 Fixed a typo
- Legacy-Id: 10469
2015-11-13 17:34:42 +00:00
Henrik Levkowetz 5ad8db39e9 Additional docker tweaks
- Legacy-Id: 10468
2015-11-13 17:33:00 +00:00
Henrik Levkowetz d7595e506b A little script to pull down and unpack a copy of the datatracker's mysql database files.
- Legacy-Id: 10467
2015-11-13 08:06:28 +00:00
Henrik Levkowetz a5435449cd Tweaks to the docker setup to make it work nicely to run different docker containers for different SVN branches.
- Legacy-Id: 10466
2015-11-12 22:40:42 +00:00
Henrik Levkowetz 07eb5d9b21 Minor tweak to docker-init
- Legacy-Id: 10462
2015-11-09 22:44:30 +00:00
Henrik Levkowetz 2664ef3039 Updated the docker init-script to not re-install MySQL; it can cause more trouble than it might save; added a guard against trying to set up the ietf database if MySQL isn't running; and changed the final working directory to be the same as where the user invoked the 'docker/run' command. If not started via docker/run, drop into the home directory.
- Legacy-Id: 10461
2015-11-09 22:34:56 +00:00
Henrik Levkowetz bfc42ae7bc Updated docker/run with options to select a non-default docker-repository and docker image tag (which now defaults to the svn branch basename); added handling for missing docker environment variables, and for the docker virtual machine not running.
- Legacy-Id: 10460
2015-11-09 22:21:55 +00:00
Henrik Levkowetz 30c538790a Removed parts of Dockerfile, simplifying it and reducing the image size. Modified and simplified the docker entrypoint script. Tweaked the cleanup actions of docker/run.
- Legacy-Id: 10455
2015-11-08 18:44:41 +00:00
Henrik Levkowetz f8872fd3dd Tweaked docker/run
- Legacy-Id: 10443
2015-11-07 22:14:22 +00:00
Henrik Levkowetz 95a001333b Added more cleanup to the docker/run command
- Legacy-Id: 10439
2015-11-07 21:22:55 +00:00
Henrik Levkowetz 81d87f5584 Updated docker/README
- Legacy-Id: 10438
2015-11-07 21:14:04 +00:00
Henrik Levkowetz 5d6128eded Added a README file for the docker image.
- Legacy-Id: 10437
2015-11-07 20:26:53 +00:00
Henrik Levkowetz c2432107a3 Updated Dockerfile and the default settings_local for the docker image. Added docker-init.sh which is used in the docker image, and docker/run which is a wrapper which runs the docker image with suitable settings.
- Legacy-Id: 10436
2015-11-07 20:25:37 +00:00
Henrik Levkowetz a17b3c62f5 Added a default settings_local for use in the docker image. Tweaked the dockerfile some.
- Legacy-Id: 10435
2015-11-06 18:28:43 +00:00
Henrik Levkowetz d9e2354aa2 A first version of a Dockerfile, to build a docker image suitable for hosting a development version of the datatracker. This version runs the test suite successfully, but does not set up the database and does not contain supporting drafts, charters, etc.
- Legacy-Id: 10434
2015-11-06 17:30:23 +00:00