Skip to content

Commit 8c145f7

Browse files
authored
c9launcher made optional
Added bash prompt before c9launcher install
1 parent 02abd71 commit 8c145f7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ RUN curl -sL https://deb.nodesource.com/setup | bash -
1212
RUN apt-get install -y nodejs software-properties-common htop
1313

1414
# Install c9launcher
15+
RUN read -p "Install c9launcher? [y/N]" -n 1 -r
16+
RUN echo # (optional) move to a new line
17+
if [[ $REPLY =~ ^[Yy]$ ]]
18+
then
1519
RUN git clone https://github.com/sirhypernova/c9launcher.git
1620
RUN cd c9launcher
1721
RUN cp config-example.json config.json
1822

1923
RUN read -p "c9launcher crypto phrase:"
2024
RUN sed -i -e 's_"crypto": "a secret to encrypt workspace passwords"_"crypto": "$REPLY"_g' config.json
2125
RUN npm install
22-
26+
RUN cd ..
27+
# Expose c9launcher
28+
EXPOSE 8080
29+
fi
2330
# Install Java 8 & Maven
2431
RUN read -p "Install Java JDK? [y/N]" -n 1 -r
2532
RUN echo # (optional) move to a new line

0 commit comments

Comments
 (0)