Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jupyter-deploy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
jupyter-deploy
Commits
a7b580fe
Commit
a7b580fe
authored
Nov 12, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sftp things
parent
358e95bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
6 deletions
+30
-6
ansible/deploy.yaml
ansible/deploy.yaml
+11
-4
ansible/docker-compose.yml.j2
ansible/docker-compose.yml.j2
+18
-1
ansible/nginx-conf/jupyter.conf
ansible/nginx-conf/jupyter.conf
+1
-1
No files found.
ansible/deploy.yaml
View file @
a7b580fe
...
@@ -76,19 +76,26 @@
...
@@ -76,19 +76,26 @@
owner
:
1000
owner
:
1000
group
:
1000
group
:
1000
with_items
:
'
{{instances}}'
with_items
:
'
{{instances}}'
-
name
:
sftp user file
copy
:
content
:
|
{% for instance in instances %}
{{instance.name}}:{{instance.password}}:1000:1000
{% endfor %}
dest
:
'
{{jupyter_root}}/sftp_users.conf'
-
name
:
docker-compose up -d
-
name
:
docker-compose up -d
docker_compose
:
docker_compose
:
project_src
:
'
{{
jupyter_root
}}'
project_src
:
'
{{
jupyter_root
}}'
remove_orphans
:
true
remove_orphans
:
true
pull
:
true
pull
:
true
handlers
:
handlers
:
-
name
:
restart_
nginx
-
name
:
restart_
all
docker_compose
:
docker_compose
:
project_src
:
'
{{
jupyter_root
}}'
project_src
:
'
{{
jupyter_root
}}'
services
:
-
nginx
restarted
:
true
restarted
:
true
-
name
:
restart_
all
-
name
:
restart_
nginx
docker_compose
:
docker_compose
:
project_src
:
'
{{
jupyter_root
}}'
project_src
:
'
{{
jupyter_root
}}'
services
:
-
nginx
restarted
:
true
restarted
:
true
ansible/docker-compose.yml.j2
View file @
a7b580fe
...
@@ -12,8 +12,25 @@ services:
...
@@ -12,8 +12,25 @@ services:
- ./certs:/etc/nginx/certs:ro
- ./certs:/etc/nginx/certs:ro
- ./nginx/cache:/etc/nginx/cache
- ./nginx/cache:/etc/nginx/cache
- ./nginx/log:/var/log/nginx
- ./nginx/log:/var/log/nginx
sftp:
restart: always
image: atmoz/sftp
ports:
- '7322:22'
volumes:
- ./sftp_users.conf:/etc/sftp/users.conf:ro
- /etc/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key:ro
- /etc/ssh/ssh_host_dsa_key:/etc/ssh/ssh_host_dsa_key:ro
- /etc/ssh/ssh_host_ecdsa_key:/etc/ssh/ssh_host_ecdsa_key:ro
- /etc/ssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key:ro
{% for instance in instances %}
- ./attachments:/home/{{ instance.name }}/attachments:ro
- ./instances/data/{{ instance.name }}:/home/{{ instance.name }}/work
{% endfor %}
# instances
{% for instance in instances %}
{% for instance in instances %}
'{{instance.name}}':
'
notebook_instance_
{{instance.name}}':
restart: always
restart: always
image: {{ jupyter_image }}
image: {{ jupyter_image }}
cpus: 1
cpus: 1
...
...
ansible/nginx-conf/jupyter.conf
View file @
a7b580fe
...
@@ -14,6 +14,6 @@ server {
...
@@ -14,6 +14,6 @@ server {
proxy_http_version
1
.
1
;
proxy_http_version
1
.
1
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
$
connection_upgrade
;
proxy_set_header
Connection
$
connection_upgrade
;
proxy_pass
http
://$
1
:
8888
;
proxy_pass
http
://
notebook_instance_
$
1
:
8888
;
}
}
}
}
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