Skip to content

Commit 19e33e0

Browse files
authored
Merge pull request #2 from kabilar/master
Update Docker Compose and DevContainer files
2 parents e95559b + d99c71b commit 19e33e0

File tree

5 files changed

+23
-76
lines changed

5 files changed

+23
-76
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Note: You can use any Debian/Ubuntu based image you want.
21
FROM mcr.microsoft.com/devcontainers/python:3.7-bullseye
32

43
RUN \
54
apt update && \
65
apt-get install bash-completion graphviz default-mysql-client -y && \
76
pip install flake8 black faker ipykernel
87

9-
ENV DJ_HOST localhost
8+
ENV DJ_HOST fakeservices.datajoint.io
109
ENV DJ_USER root
1110
ENV DJ_PASS simple

.devcontainer/devcontainer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
{
3-
"name": "Development",
3+
"name": "DataJoint Tutorial",
44
"dockerComposeFile": "docker-compose.yaml",
55
"service": "app",
66
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
@@ -16,13 +16,13 @@
1616
"ghcr.io/guiyomh/features/vim:0": {}
1717
},
1818
"onCreateCommand": "pip install -e .",
19-
"postStartCommand": "MYSQL_VER=8.0 MINIO_VER=RELEASE.2022-08-11T04-37-28Z docker compose -f ./.devcontainer/local-docker-compose.yml down && MYSQL_VER=8.0 MINIO_VER=RELEASE.2022-08-11T04-37-28Z docker compose -f ./.devcontainer/local-docker-compose.yml up --build --wait",
19+
"postStartCommand": "MYSQL_VER=8.0 docker compose down && MYSQL_VER=8.0 docker compose up --build --wait",
20+
"hostRequirements": {
21+
"cpus": 2,
22+
"memory": "4gb"
23+
},
2024
"forwardPorts": [
21-
80,
22-
443,
23-
3306,
24-
8080,
25-
9000
25+
3306
2626
],
2727
"customizations": {
2828
"vscode": {

.devcontainer/local-docker-compose.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# MYSQL_VER=8.0 docker compose up --build
2+
version: "2.4"
3+
services:
4+
db:
5+
image: datajoint/mysql:${MYSQL_VER}
6+
environment:
7+
- MYSQL_ROOT_PASSWORD=${DJ_PASS}
8+
ports:
9+
- "3306:3306"
10+
healthcheck:
11+
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
12+
timeout: 30s
13+
retries: 5
14+
interval: 15s

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
author='DataJoint',
1919
author_email='[email protected]',
2020
license='MIT',
21-
url='https://github.com/datajoint-company/playground_tutorial',
21+
url='https://github.com/datajoint/datajoint-tutorial',
2222
keywords='neuroscience datajoint',
2323
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
2424
install_requires=requirements,

0 commit comments

Comments
 (0)