Skip to content

Commit 9055823

Browse files
committed
Initial commit
1 parent 49b5ecd commit 9055823

File tree

9 files changed

+77
-0
lines changed

9 files changed

+77
-0
lines changed

.devcontainer/dev.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
services:
2+
#TODO: Your other containers go here!
3+
4+
dev:
5+
image: jeffersonlab/python-devcontainer:latest
6+
hostname: dev
7+
container_name: dev
8+
volumes:
9+
- /var/run/docker.sock:/var/run/docker.sock

.devcontainer/devcontainer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dockerComposeFile": "dev.yaml",
3+
"service": "dev",
4+
"workspaceFolder": "/workspaces/python-devcontainer"
5+
}

.github/workflows/cd.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'VERSION'
8+
9+
jobs:
10+
release:
11+
uses: jeffersonlab/container-workflows/.github/workflows/gh-release.yml@v1
12+
13+
docker_publish:
14+
needs:
15+
- release
16+
uses: jeffersonlab/container-workflows/.github/workflows/docker-publish.yml@v1
17+
with:
18+
semvertag: ${{ needs.release.outputs.semvertag }}
19+
secrets: inherit

.github/workflows/dd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: DD
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- README.md
9+
- .github/workflows/dd.yml
10+
jobs:
11+
description:
12+
uses: jeffersonlab/container-workflows/.github/workflows/docker-description.yml@v1
13+
secrets: inherit

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ubuntu:jammy
2+
3+
RUN cd /tmp \
4+
&& apt update \
5+
&& apt install -y curl git vim zip unzip tini \
6+
&& apt clean \
7+
&& curl -o /usr/local/share/ca-certificates/customcert.crt http://pki.jlab.org/JLabCA.crt \
8+
&& update-ca-certificates \
9+
&& curl -O https://raw.githubusercontent.com/devcontainers/features/main/src/docker-outside-of-docker/install.sh \
10+
&& chmod +x /tmp/install.sh \
11+
&& /tmp/install.sh
12+
13+
ENV TZ=America/New_York
14+
ENTRYPOINT ["/usr/bin/tini", "--"]
15+
CMD ["sleep", "infinity"]

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.5

build.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
dev:
3+
extends:
4+
file: compose.yaml
5+
service: dev
6+
build:
7+
context: .
8+
dockerfile: Dockerfile

compose.override.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
services:
2+
dev:
3+
image: jeffersonlab/python-devcontainer:0.0.5

compose.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
services:
2+
dev:
3+
hostname: dev
4+
container_name: dev

0 commit comments

Comments
 (0)