File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " github-actions"
4+ directory : " /"
5+ schedule :
6+ interval : " daily"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11# containers
2- Containers builds for custom ctx.sh projects
2+ Container builds for custom ctx.sh projects
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 1+ Jinja2==2.11.2
2+ jinja2-cli==0.7.0
3+ MarkupSafe==1.1.1
4+ PyYAML==5.4.1
You can’t perform that action at this time.
0 commit comments