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

Cloud9 IDE integration #48

Merged
merged 7 commits into from
Jun 1, 2018
Merged

Cloud9 IDE integration #48

merged 7 commits into from
Jun 1, 2018

Conversation

lmakarov
Copy link
Member

@lmakarov lmakarov commented Jun 1, 2018

Parent issue: docksal/docksal#568

- Ditch nvm and install Node.js globally from NodeSource repos
- List images after build (to check image sizes)
- Starting supervisord using /etc/supervisor/supervisord.conf config, which includes /etc/supervisor/conf.d/*.conf
- Removed non-essential settings from the custom supervisor.conf - pretty much all of them are covered in /etc/supervisor/supervisord.conf (in Debian Stretch)
@lmakarov lmakarov self-assigned this Jun 1, 2018
@lmakarov
Copy link
Member Author

lmakarov commented Jun 1, 2018

Alternative way of installing node and yarn from binaries:

ENV NODE_VERSION=8.11.2
ENV YARN_VERSION 1.5.1
RUN set -xe; \
	# Nodejs
	curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz"; \
	tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1; \
	rm -f "node-v$NODE_VERSION-linux-x64.tar.xz"; \
	ln -s /usr/local/bin/node /usr/local/bin/nodejs; \
	# Yarn
	curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz"; \
	tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/; \
	ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn; \
	ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg; \
	rm -f yarn-v$YARN_VERSION.tar.gz;

This adds 60.9MB vs 53.9MB when installing from packages.

@lmakarov lmakarov merged commit 49a0f85 into develop Jun 1, 2018
@achekulaev
Copy link
Member

@lmakarov why are we using outdated nodejs?

@lmakarov
Copy link
Member Author

lmakarov commented Jun 1, 2018

@achekulaev 8.11.2 is the current LTS release.

@achekulaev
Copy link
Member

achekulaev commented Jun 1, 2018

@lmakarov no 10.x is current LTS https://en.wikipedia.org/wiki/Node.js
8.x is previous LTS.

@lmakarov
Copy link
Member Author

lmakarov commented Jun 1, 2018

@achekulaev per http://nodejs.org/

8.11.2 LTS
Recommended For Most Users
 
10.3.0 Current
Latest Features

@lmakarov
Copy link
Member Author

lmakarov commented Jun 1, 2018

8.11.0 is the nodejs version we currently have in cli (master)

@lmakarov lmakarov deleted the feature/cloud9 branch July 7, 2018 04:28
@lmakarov lmakarov mentioned this pull request Jul 14, 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.

2 participants