Skip to content

Commit

Permalink
rewrite test
Browse files Browse the repository at this point in the history
  • Loading branch information
lesomnus committed Jul 20, 2024
1 parent a7c591f commit e73e0bf
Show file tree
Hide file tree
Showing 8 changed files with 293 additions and 167 deletions.
24 changes: 0 additions & 24 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,9 @@
FROM ghcr.io/lesomnus/dev-node:20

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
| tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt update \
&& apt-get install --no-install-recommends --yes \
docker-ce-cli \
&& docker --version


RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update \
&& apt-get install --no-install-recommends --yes \
skopeo \
&& skopeo --version



USER hypnos

RUN docker context create dev --docker "host=tcp://docker:2376,skip-tls-verify=true" \
&& docker context use dev

# Comment below lines if you don't want to use Zsh
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true \
&& git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions \
Expand Down
11 changes: 3 additions & 8 deletions .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ services:
- type: bind
source: ..
target: /workspace

docker:
image: library/docker:26-dind
command:
- --tlsverify=false
- --insecure-registry=registry:5000

privileged: true
- type: volume
source: registry
target: /var/lib/registry

registry:
image: ghcr.io/project-zot/zot:v2.1.0
Expand Down
10 changes: 0 additions & 10 deletions scripts/init-registry.mts

This file was deleted.

Loading

0 comments on commit e73e0bf

Please sign in to comment.