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

Fix Docker deployments 🐳 #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hugomd
Copy link
Contributor

@hugomd hugomd commented Jun 18, 2018

Resolves #47, fixes #39, #43

I've updated the Dockerfile to use the node:10-alpine image, and to pull the latest version of now with Alpine support (11.2.1). I would have pulled 8.3.9 which is what the rest of the code uses, but the binary doesn't seem to work on Alpine at all 🤔

I've tested pretty extensively and it seems to be quite stable ✅

I'd like to make another PR to update now version that we pull for npm based deployments to 11.2.1, that way we shouldn't have any compatibility issues from now across npm and docker deployments.

@hugomd hugomd mentioned this pull request Jun 18, 2018
@@ -85,7 +85,7 @@ function stage(cwd, {alias}) {
if (!url) return reject(new Error('Deployment failed'));
log.info(`> Setting ${url} to alias ${alias}`);
const aliasProc = exec(now(`alias set ${url} ${alias}`), {cwd});
aliasProc.stderr.on('data', (error) => {aliasError = error;});
aliasProc.stderr.on('data', (error) => {aliasError = error.replace('\u001b[2K\u001b[G', '');});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason the latest version of now outputs escape sequences into stderr and it was breaking here..

@hugomd hugomd mentioned this pull request Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker: Move from Slim to Alpine Docker deployments fail
1 participant