Skip to content

Commit 5114244

Browse files
authored
Merge pull request #1 from ctxsh/introduce_core
feat(core): initial commit for core
2 parents 3544d7d + 1d00047 commit 5114244

6 files changed

Lines changed: 80 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/release.yaml

Whitespace-only changes.

Makefile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
NAMESPACE ?= ctxsh
2+
# VERSION := $(shell git describe --tags)
3+
BUILD := $(shell git rev-parse --short HEAD)
4+
CR_TOKEN ?= unset
5+
CR_USERNAME ?= anonymous
6+
7+
.PHONY: all
8+
all: core
9+
10+
###################################################################################################
11+
# Login
12+
###################################################################################################
13+
.PHONY: login
14+
login:
15+
@echo $(CR_TOKEN) | docker login ghcr.io -u $(CR_USERNAME) --password-stdin
16+
17+
###################################################################################################
18+
# Base
19+
###################################################################################################
20+
.PHONY: core
21+
core:
22+
@docker build \
23+
--tag ghcr.io/$(NAMESPACE)/core:$(BUILD) \
24+
--file core/Dockerfile \
25+
core
26+
27+
.PHONY: release-core
28+
release-core:
29+
@docker push ghcr.io/$(NAMESPACE)/core:$(BUILD)
30+
31+
.PHONY: release-core-latest
32+
release-core-latest:
33+
@docker tag ghcr.io/$(NAMESPACE)/core:$(BUILD) ghcr.io/$(NAMESPACE)/core:latest
34+
@docker push ghcr.io/$(NAMESPACE)/core:latest
35+
36+
37+
###################################################################################################
38+
# Clean
39+
###################################################################################################
40+
clean:
41+
@docker rm $(shell docker ps -qa) || true
42+
@docker rmi $(shell docker images -q $(NAMESPACE)/core) --force || true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# containers
2-
Containers builds for custom ctx.sh projects
2+
Container builds for custom ctx.sh projects

core/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM debian:bullseye-slim as extract
2+
3+
LABEL org.opencontainers.image.source=https://github.com/ctxsh/containers/core
4+
LABEL org.opencontainers.image.description="Core image"
5+
LABEL org.opencontainers.image.licenses="Apache 2.0"
6+
7+
FROM debian:bullseye-slim
8+
9+
COPY requirements3.txt /tmp/requirements3.txt
10+
11+
RUN : \
12+
&& apt-get update -y \
13+
&& apt-get install -y --no-install-recommends \
14+
netcat \
15+
curl \
16+
jq \
17+
ca-certificates \
18+
python3-minimal \
19+
python3-venv \
20+
python3-pip \
21+
&& pip3 install -r /tmp/requirements3.txt \
22+
&& rm -rf /var/lib/apt/lists/* \
23+
&& apt-get clean \
24+
&& rm -rf /tmp/* \
25+
&& :
26+
27+
CMD ["/bin/bash"]

core/requirements3.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Jinja2==2.11.2
2+
jinja2-cli==0.7.0
3+
MarkupSafe==1.1.1
4+
PyYAML==5.4.1

0 commit comments

Comments
 (0)