docker-compose env file

45 views
Skip to first unread message

Sebastian Brudziński

unread,
Jun 14, 2016, 8:25:07 AM6/14/16
to openlm...@googlegroups.com
Hello,

I've noticed that after tonight's changes connected with adding environment file to docker-compose configuration, it became impossible to start the projects locally with Docker, using docker-compose run. The reason is missing .env file, that has been specified in the configuration, but doesn't exist on the three repositories.

Adding empty file broke the build, so I left it as is for now. I've noticed that Jenkins has been configured to fetch the .env file, containing database access, from the new openlmis-config repository before each build. I've been wondering about the local development flow though. Should we now manually create the .env files with database access before starting the project? If so, I suppose we should at least mention it in the "quick start" docs.

Best regards,
Sebastian Brudzinski.

Chongsun Ahn

unread,
Jun 14, 2016, 1:35:11 PM6/14/16
to OpenLMIS Dev
Sorry, forgot to reply to all. My response to this issue below.

Shalom,
Chongsun

-- ​
There are 10 kinds of people in this world; those who understand binary, and those who don’t.

Software Development Engineer
 
VillageReach Starting at the Last Mile
2900 Eastlake Ave. E, Suite 230,  Seattle, WA 98102, USA
DIRECT: 1.206.512.1536   CELL: 1.206.910.0973   FAX: 1.206.860.6972
SKYPE: chongsun.ahn.vr
Connect on Facebook, Twitter and our Blog

Begin forwarded message:

From: Chongsun Ahn <chongs...@villagereach.org>
Subject: Re: [openlmis-dev] docker-compose env file
Date: June 14, 2016 at 10:14:32 AM PDT
To: Sebastian Brudziński <sbrud...@soldevelo.com>

Hey Sebastian,

Sorry, I forgot that my code changes would break local dev builds. Yes, for any Independent Service projects, you will need a .env file in the root folder of the project, which specifies db url, username and password. You can use the one here as a starter (https://github.com/OpenLMIS/openlmis-config/blob/master/.env).

I will update the quick start docs shortly in each of the repos. Thanks for pointing it out.

Shalom,
Chongsun

-- ​
There are 10 kinds of people in this world; those who understand binary, and those who don’t.

Software Development Engineer
 
VillageReach Starting at the Last Mile
2900 Eastlake Ave. E, Suite 230,  Seattle, WA 98102, USA
DIRECT: 1.206.512.1536   CELL: 1.206.910.0973   FAX: 1.206.860.6972
SKYPE: chongsun.ahn.vr
Connect on Facebook, Twitter and our Blog

--
You received this message because you are subscribed to the Google Groups "OpenLMIS Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev...@googlegroups.com.
To post to this group, send email to openlm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/575FF7A2.3010200%40soldevelo.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages