File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 "workspaceFolder" : " /workspace" ,
88 "shutdownAction" : " stopCompose" ,
99 "postCreateCommand" : " /docker-init.sh" ,
10+ "postStartCommand" : " /docker-start.sh" ,
1011 "containerEnv" : {
1112 "EDITOR_VSCODE" : " true"
1213 },
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ RUN rm -rf /tmp/library-scripts
4242
4343# Copy the startup file
4444COPY docker/scripts/app-init.sh /docker-init.sh
45+ COPY docker/scripts/app-start.sh /docker-start.sh
4546RUN sed -i 's/\r $//' /docker-init.sh && chmod +x /docker-init.sh
47+ RUN sed -i 's/\r $//' /docker-start.sh && chmod +x /docker-start.sh
4648
4749# Fix user UID / GID to match host
4850RUN groupmod --gid $USER_GID $USERNAME \
Original file line number Diff line number Diff line change @@ -94,14 +94,13 @@ echo "Running initial checks..."
9494
9595/usr/local/bin/python $WORKSPACEDIR /ietf/manage.py migrate --fake-initial --settings=settings_local
9696
97- echo " -----------------------------------------------------------------"
98- echo " Done!"
99- echo " -----------------------------------------------------------------"
100-
10197if [ -z " $EDITOR_VSCODE " ]; then
10298 CODE=0
10399 python -m smtpd -n -c DebuggingServer localhost:2025 &
104100 if [ -z " $* " ]; then
101+ echo " -----------------------------------------------------------------"
102+ echo " Ready!"
103+ echo " -----------------------------------------------------------------"
105104 echo
106105 echo " You can execute arbitrary commands now, e.g.,"
107106 echo
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ sudo service rsyslog start & > /dev/null
4+
5+ # Run nginx
6+
7+ echo " Starting nginx..."
8+ pidof nginx > /dev/null && echo " nginx is already running [ OK ]" || sudo nginx
9+
10+ # Run memcached
11+
12+ echo " Starting memcached..."
13+ pidof memcached > /dev/null && echo " memcached is already running [ OK ]" || /usr/bin/memcached -u dev -d
14+
15+ echo " -----------------------------------------------------------------"
16+ echo " Ready!"
17+ echo " -----------------------------------------------------------------"
You can’t perform that action at this time.
0 commit comments