Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker setup is broken #628

Closed
lyrixx opened this issue Nov 24, 2015 · 6 comments
Closed

Docker setup is broken #628

lyrixx opened this issue Nov 24, 2015 · 6 comments

Comments

@lyrixx
Copy link

lyrixx commented Nov 24, 2015

Hello.

See

wp-calypso/Dockerfile

Lines 8 to 9 in 79535ba

COPY ./env-config.sh /tmp/
RUN bash /tmp/env-config.sh

=> the file env-config.sh does not exist. I searched in the repository and in the git history, and I was not able to find it.

@xkidro
Copy link

xkidro commented Nov 24, 2015

Yes I noticed this also, really wanted to start it with docker but I have no ideea what env-config.sh is supose to contain, I am guessing it just sets up the ENV vars, however I did not try it.

@nb
Copy link
Member

nb commented Nov 24, 2015

Hi, @lyrixx, thanks for the question.

The Dockerfile is rarely used for local development, more often for deployment. Still, if you’re curious, add an empty env-config.sh and it should work. There may be more roadblocks ahead, though.

@nb
Copy link
Member

nb commented Nov 24, 2015

@xkidro yeah, it’s mostly environment variables, but they are server-specific and the file is kept in the deployment repository.

@nb nb closed this as completed Nov 24, 2015
@xkidro
Copy link

xkidro commented Nov 25, 2015

Hello @nb, thank you for your response.

Can we at least get a sample ? with sample values ? so we know which ones to configure ? I did setup ENV CALYPSO_ENV production however it does not work....

@nb
Copy link
Member

nb commented Nov 26, 2015

@xkidro production is not meant to work locally – it needs extra setup, which is not trivial – requests has to come from the wordpress.com domain, user bootstrap requires a way to make an API request for any user (and a special token), there’s probably something else that I’m forgetting.

@andrewmclagan
Copy link

Id disagree with that

production is not meant to work locally

One of the core premise of Docker is the concept that production is development. Your always running in as close to a production environment as possible - because you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants