[PATCH v2 5/6] Allow use of Docker for development

Andrew Donnellan andrew.donnellan at au1.ibm.com
Mon Aug 8 17:00:56 AEST 2016


On 04/08/16 16:10, Daniel Axtens wrote:
> This makes it possible to use Docker and docker-compose for development
> as an alternative to Vagrant.
>
> I quite liked vagrant a couple of years ago, but currently:
>
>  * Trying to install VirtualBox on Ubuntu wants me to disable
>    Secure Boot, and I don't want to do that.
>
>  * Trying to use the libvirt plugin for vagrant requires I pick
>    from a very small set of possible images, and requires that I
>    install the upstream vagrant rather than the vagrant shipped
>    with Ubuntu 16.04
>
>  * I find docker containers faster to work with and more transparent.
>
> So I've done the work to make docker work for Patchwork development.
> This doesn't break or in any way interfere with using Vagrant, it just
> provides an alternative.
>
> It includes support for headless selenium tests using Chromium.
>
> Signed-off-by: Daniel Axtens <dja at axtens.net>

Step 18 : WORKDIR /home/patchwork/patchwork
  ---> Running in d3058a7597b4
  ---> 135d5890866b
Removing intermediate container d3058a7597b4
Successfully built 135d5890866b
WARNING: Image for service web was built because it did not already 
exist. To rebuild this image you must use `docker-compose build` or 
`docker-compose up --build`.
Creating patchwork_db_1
Creating patchwork_web_1
Attaching to patchwork_db_1, patchwork_web_1
db_1   | Initializing database
web_1  | MySQL seems not to be connected, or the patchwork user is broken
web_1  | MySQL may still be starting. Waiting 5 seconds.
web_1  | Still cannot connect to MySQL.
web_1  | Are you using docker-compose? If not, have you set up the link 
correctly?
patchwork_web_1 exited with code 1
db_1   | Database initialized
db_1   | MySQL init process in progress...
db_1   | Warning: Unable to load '/usr/share/zoneinfo/Factory' as time 
zone. Skipping it.
db_1   | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as 
time zone. Skipping it.
db_1   | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' 
as time zone. Skipping it.
db_1   | Warning: Unable to load '/usr/share/zoneinfo/posix/Factory' as 
time zone. Skipping it.
db_1   | Warning: Unable to load '/usr/share/zoneinfo/right/Factory' as 
time zone. Skipping it.
db_1   | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time 
zone. Skipping it.
db_1   | mysql: [Warning] Using a password on the command line interface 
can be insecure.
db_1   | mysql: [Warning] Using a password on the command line interface 
can be insecure.
db_1   |
db_1   | /usr/local/bin/docker-entrypoint.sh: ignoring 
/docker-entrypoint-initdb.d/*
db_1   |
db_1   |
db_1   | MySQL init process done. Ready for start up.
db_1   |

Perhaps 5 seconds isn't enough?

-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com  IBM Australia Limited



More information about the Patchwork mailing list