Compare commits
2 Commits
51b0080436
...
5f8c75408d
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f8c75408d | |||
| 8a2bf361eb |
@ -8,7 +8,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./:/usr/share/nginx/html:ro
|
- ./:/usr/share/nginx/html:ro
|
||||||
cloud9:
|
cloud9:
|
||||||
image: sapk/cloud9:latest
|
build:
|
||||||
|
context: ./docker
|
||||||
|
dockerfile: cloud9.dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/workspace/
|
- ./:/workspace/
|
||||||
|
|||||||
24
docker/cloud9.dockerfile
Normal file
24
docker/cloud9.dockerfile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Cloud9 server
|
||||||
|
# A lot inspired by https://hub.docker.com/r/gai00/cloud9/~/dockerfile/
|
||||||
|
# https://hub.docker.com/r/kdelfour/cloud9-docker/~/dockerfile/
|
||||||
|
|
||||||
|
FROM node:8-slim
|
||||||
|
LABEL maintainer="Antoine GIRARD <antoine.girard@sapk.fr>"
|
||||||
|
|
||||||
|
RUN buildDeps='make build-essential g++ gcc python' && softDeps="tmux git" \
|
||||||
|
&& apt-get update && apt-get upgrade -y \
|
||||||
|
&& apt-get install -y $buildDeps $softDeps --no-install-recommends \
|
||||||
|
&& npm install -g forever && npm cache clean --force \
|
||||||
|
&& git clone --depth=5 https://github.com/c9/core.git /cloud9 && cd /cloud9 \
|
||||||
|
&& scripts/install-sdk.sh \
|
||||||
|
&& apt-get purge -y --auto-remove $buildDeps \
|
||||||
|
&& apt-get autoremove -y && apt-get autoclean -y && apt-get clean -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
||||||
|
&& npm cache clean --force \
|
||||||
|
&& git reset --hard
|
||||||
|
|
||||||
|
VOLUME /workspace
|
||||||
|
EXPOSE 8181
|
||||||
|
ENTRYPOINT ["forever", "/cloud9/server.js", "-w", "/workspace", "--listen", "0.0.0.0"]
|
||||||
|
|
||||||
|
CMD ["--auth","c9:c9"]
|
||||||
@ -198,7 +198,7 @@ updated status.
|
|||||||
```js
|
```js
|
||||||
const monkeys = contained([], arr => arr.join('$'));
|
const monkeys = contained([], arr => arr.join('$'));
|
||||||
const firstMonkey = computed(m => (m.length ? m[0] : null), [monkeys]);
|
const firstMonkey = computed(m => (m.length ? m[0] : null), [monkeys]);
|
||||||
firstMonkey.subscribe(console.log.bind.console);
|
firstMonkey.subscribe(console.log.bind(console));
|
||||||
```
|
```
|
||||||
|
|
||||||
### Add a member to the container
|
### Add a member to the container
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user