Skip to content

Commit a58a1e9

Browse files
authored
Merge pull request #37 from infn-datacloud/jenkins
Jenkins and devcontainer
2 parents c4ea3de + 954032d commit a58a1e9

29 files changed

+785
-676
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
3131
},
3232
"sonarlint.connectedMode.project": {
33-
"connectionId": "indigo-paas/federation-registry",
34-
"projectKey": "indigo-paas_federation-registry"
33+
"connectionId": "infn-datacloud/federation-registry",
34+
"projectKey": "infn-datacloud_federation-registry"
3535
},
3636
"python.analysis.autoFormatStrings": true,
3737
"python.analysis.inlayHints.functionReturnTypes": true,
@@ -46,24 +46,24 @@
4646

4747
// Features to add to the dev container. More info: https://containers.dev/features.
4848
"features": {
49-
"ghcr.io/devcontainers-contrib/features/act:1": {},
5049
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
5150
"ghcr.io/devcontainers-contrib/features/ruff:1": {},
5251
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
5352
"ghcr.io/devcontainers/features/git:1": {},
5453
"ghcr.io/devcontainers/features/github-cli:1": {},
5554
"ghcr.io/devcontainers/features/python:1": {
56-
"installTools": true,
57-
"version": "3.9"
55+
"installTools": false,
56+
"version": "3.10"
5857
},
59-
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
58+
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
59+
"ghcr.io/devcontainers/features/node:1": {}
6060
},
6161

6262
// Use 'forwardPorts' to make a list of ports inside the container available locally.
6363
// "forwardPorts": [],
6464

6565
// Use 'postCreateCommand' to run commands after the container is created.
66-
"postStartCommand": "bash .devcontainer/postCreateCommand.sh"
66+
"postStartCommand": "bash .devcontainer/postStartCommand.sh"
6767

6868
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
6969
// "remoteUser": "root"

.devcontainer/docker-compose.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,28 @@
1-
version: "3"
2-
31
services:
42
db:
5-
image: neo4j:5.15
3+
image: neo4j:5.18
64
container_name: fed-reg-devc-db
5+
ports:
6+
- 7687:7687
7+
- 7474:7474
78
volumes:
89
- fed-reg-devc-db-data:/data
910
- fed-reg-devc-db-logs:/logs
1011
environment:
1112
- NEO4J_AUTH=none
1213
- NEO4J_PLUGINS=["apoc"]
13-
networks:
14-
- fed-reg-devc-db
15-
16-
oidc-agent:
17-
image: opensciencegrid/oidc-agent:3.6-release-20240220-1639
18-
container_name: fed-reg-devc-oidc-agent
19-
platform: linux/amd64
20-
volumes:
21-
- fed-reg-devc-oidc-agent-iss-config:/root/.oidc-agent
22-
networks:
23-
- fed-reg-devc-oidc-agent
2414

2515
base:
26-
image: mcr.microsoft.com/devcontainers/typescript-node:18
16+
build:
17+
context: ./..
18+
dockerfile: ./dockerfiles/Dockerfile.devc
2719
container_name: fed-reg-devc-base
28-
depends_on:
29-
- db
30-
- oidc-agent
3120
volumes:
3221
- ..:/workspace:cached
3322
environment:
3423
- NEO4J_SERVER=fed-reg-devc-db
35-
- OIDC_AGENT_CONTAINER_NAME=fed-reg-devc-oidc-agent
36-
networks:
37-
- fed-reg-devc-db
38-
- fed-reg-devc-oidc-agent
3924
command: sleep infinity
4025

4126
volumes:
4227
fed-reg-devc-db-data:
4328
fed-reg-devc-db-logs:
44-
fed-reg-devc-oidc-agent-iss-config:
45-
46-
networks:
47-
fed-reg-devc-db:
48-
fed-reg-devc-oidc-agent:

.devcontainer/postCreateCommand.sh

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

.devcontainer/postStartCommand.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Install poetry dependencies
2+
poetry install

.github/workflows/docker-build.yaml

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

.github/workflows/linting.yaml

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

.github/workflows/sonar.yaml

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

.gitlab-ci.yml

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

compose.backend.dev.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
services:
2+
backend:
3+
image: indigopaas/federation-registry:v1.0.0-alpha.2
4+
restart: unless-stopped
5+
ports:
6+
- "8000:80"
7+
environment:
8+
- ADMIN_EMAIL_LIST=${ADMIN_EMAIL_LIST}
9+
- TRUSTED_IDP_LIST=${TRUSTED_IDP_LIST}

compose.dev.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
backend:
3+
depends_on:
4+
db:
5+
condition: service_healthy
6+
required: false
7+
environment:
8+
- NEO4J_SERVER=db

0 commit comments

Comments
 (0)