Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
29483bab
Commit
29483bab
authored
Jul 13, 2018
by
ahkui
Committed by
Shao Yu-Lung (Allen)
Jul 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Ipython (#1685)
parent
85c57a0b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
0 deletions
+97
-0
docker-compose.yml
docker-compose.yml
+22
-0
env-example
env-example
+3
-0
Dockerfile.controller
ipython/Dockerfile.controller
+17
-0
Dockerfile.engine
ipython/Dockerfile.engine
+23
-0
ipcontroller-client.json
ipython/ipcontroller-client.json
+16
-0
ipcontroller-engine.json
ipython/ipcontroller-engine.json
+16
-0
No files found.
docker-compose.yml
View file @
29483bab
...
...
@@ -717,9 +717,31 @@ services:
volumes
:
-
${DATA_PATH_HOST}/portainer_data:/data
-
/var/run/docker.sock:/var/run/docker.sock
extra_hosts
:
-
"
dockerhost:${DOCKER_HOST_IP}"
ports
:
-
9010:9000
### IPython #########################################
ipython-controller
:
build
:
context
:
./ipython
dockerfile
:
Dockerfile.controller
networks
:
-
backend
extra_hosts
:
-
"
laradock-ipython:${LARADOCK_IPYTHON_CONTROLLER_IP}"
ports
:
-
"
33327-33338:33327-33338"
ipython-engine
:
build
:
context
:
./ipython
dockerfile
:
Dockerfile.engine
networks
:
-
backend
extra_hosts
:
-
"
laradock-ipython:${LARADOCK_IPYTHON_CONTROLLER_IP}"
### Docker-in-Docker ################################################
docker-in-docker
:
image
:
docker:dind
...
...
env-example
View file @
29483bab
...
...
@@ -360,6 +360,9 @@ SOLR_VERSION=5.5
SOLR_PORT=8983
SOLR_DATAIMPORTHANDLER_MYSQL=false
### IPYTHON ##################################################
LARADOCK_IPYTHON_CONTROLLER_IP=127.0.0.1
### NETDATA ###############################################
NETDATA_PORT=19999
...
...
ipython/Dockerfile.controller
0 → 100644
View file @
29483bab
FROM python:3.5-alpine
LABEL maintainer="ahkui <ahkui@outlook.com>"
USER root
RUN apk add --no-cache build-base
RUN python -m pip --quiet --no-cache-dir install \
ipyparallel
RUN ipython profile create --parallel --profile=default
COPY ipcontroller-client.json /root/.ipython/profile_default/security/ipcontroller-client.json
COPY ipcontroller-engine.json /root/.ipython/profile_default/security/ipcontroller-engine.json
CMD ["sh","-c","ipcontroller --ip=* --reuse"]
\ No newline at end of file
ipython/Dockerfile.engine
0 → 100644
View file @
29483bab
FROM python:3.5-alpine
LABEL maintainer="ahkui <ahkui@outlook.com>"
USER root
RUN apk add --no-cache build-base
RUN python -m pip --quiet --no-cache-dir install \
ipyparallel \
numpy \
pandas \
pymongo \
redis \
requests \
bs4
RUN ipython profile create --parallel --profile=default
COPY ipcontroller-client.json /root/.ipython/profile_default/security/ipcontroller-client.json
COPY ipcontroller-engine.json /root/.ipython/profile_default/security/ipcontroller-engine.json
CMD ["sh","-c","ipcluster engines"]
ipython/ipcontroller-client.json
0 → 100644
View file @
29483bab
{
"key"
:
"868074dd-060311910ab3d6991611bccf"
,
"signature_scheme"
:
"hmac-sha256"
,
"unpack"
:
"json"
,
"pack"
:
"json"
,
"ssh"
:
""
,
"task_scheme"
:
"leastload"
,
"interface"
:
"tcp://*"
,
"location"
:
"laradock-ipython"
,
"notification"
:
33338
,
"iopub"
:
33337
,
"control"
:
33336
,
"mux"
:
33335
,
"task"
:
33334
,
"registration"
:
33333
}
\ No newline at end of file
ipython/ipcontroller-engine.json
0 → 100644
View file @
29483bab
{
"key"
:
"868074dd-060311910ab3d6991611bccf"
,
"signature_scheme"
:
"hmac-sha256"
,
"unpack"
:
"json"
,
"pack"
:
"json"
,
"ssh"
:
""
,
"interface"
:
"tcp://*"
,
"location"
:
"laradock-ipython"
,
"iopub"
:
33327
,
"hb_ping"
:
33328
,
"hb_pong"
:
33329
,
"control"
:
33330
,
"mux"
:
33331
,
"task"
:
33332
,
"registration"
:
33333
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment