Skip to content

Instantly share code, notes, and snippets.

@kena0ki
Last active August 11, 2017 16:54
Show Gist options
  • Save kena0ki/9749bde36f9fce8bfb1981ef6d4cc2d6 to your computer and use it in GitHub Desktop.
Save kena0ki/9749bde36f9fce8bfb1981ef6d4cc2d6 to your computer and use it in GitHub Desktop.
Recipe for React(from eclipse/stack-base:debian)
FROM eclipse/stack-base:debian
RUN sudo apt-get update && \
sudo apt-get -y install build-essential libssl-dev libkrb5-dev gcc make ruby-full rubygems debian-keyring python2.7 && \
sudo gem install sass compass && \
sudo apt-get clean && \
sudo apt-get -y autoremove && \
sudo apt-get -y clean && \
sudo rm -rf /var/lib/apt/lists/*
RUN wget -qO- https://deb.nodesource.com/setup_7.x | sudo -E bash -
RUN sudo apt update && sudo apt -y install nodejs
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
RUN sudo apt update && sudo apt -y install yarn
EXPOSE 1337 3000 4200 5000 9000 8003
RUN sudo yarn global add create-react-app
LABEL che:server:8003:ref=angular che:server:8003:protocol=http che:server:3000:ref=node-3000 che:server:3000:protocol=http che:server:9000:ref=node-9000 che:server:9000:protocol=http
@kena0ki
Copy link
Author

kena0ki commented Aug 11, 2017

but this recipe cant create a custom stack for Eclipse che.
Error message : Image id not found in build output.
the cause seems to be dependency problem for libssl-dev.
I suppose it occurs because the debian image is cashed in Code envy's server but tools' versions (including libssl-dev) are the versions at the installed time.

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