Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Aug 14, 2023
1 parent d44197c commit 8571be4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
13 changes: 7 additions & 6 deletions test/base-debian.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/bash
set -ex
id=$(basename "$BASH_SOURCE")
mkdir -p .cache/$id/.devcontainer
ln -s . .cache/$id/.devcontainer/feature
cat <<EOF >.cache/$id/.devcontainer/devcontainer.json
feature_dir=$PWD
pushd "$(mktemp -d)"
mkdir -p .devcontainer
cat <<EOF >.devcontainer/devcontainer.json
{
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"./feature": {}
}
}
EOF
devcontainer up --workspace-folder .cache/$id
devcontainer exec --workspace-folder .cache/$id cmake --version
ln -s "$feature_dir" "$PWD/.devcontainer/feature"
devcontainer up
devcontainer exec cmake --version
echo "TODO: Kill container after test"
13 changes: 7 additions & 6 deletions test/base-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/bash
set -ex
id=$(basename "$BASH_SOURCE")
mkdir -p .cache/$id/.devcontainer
ln -s . .cache/$id/.devcontainer/feature
cat <<EOF >.cache/$id/.devcontainer/devcontainer.json
feature_dir=$PWD
pushd "$(mktemp -d)"
mkdir -p .devcontainer
cat <<EOF >.devcontainer/devcontainer.json
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"./feature": {}
}
}
EOF
devcontainer up --workspace-folder .cache/$id
devcontainer exec --workspace-folder .cache/$id cmake --version
ln -s "$feature_dir" "$PWD/.devcontainer/feature"
devcontainer up
devcontainer exec cmake --version
echo "TODO: Kill container after test"
13 changes: 7 additions & 6 deletions test/debian-bookworm-slim.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/bash
set -ex
id=$(basename "$BASH_SOURCE")
mkdir -p .cache/$id/.devcontainer
ln -s . .cache/$id/.devcontainer/feature
cat <<EOF >.cache/$id/.devcontainer/devcontainer.json
feature_dir=$PWD
pushd "$(mktemp -d)"
mkdir -p .devcontainer
cat <<EOF >.devcontainer/devcontainer.json
{
"image": "debian:bookworm-slim",
"features": {
"./feature": {}
}
}
EOF
devcontainer up --workspace-folder .cache/$id
devcontainer exec --workspace-folder .cache/$id cmake --version
ln -s "$feature_dir" "$PWD/.devcontainer/feature"
devcontainer up
devcontainer exec cmake --version
echo "TODO: Kill container after test"

0 comments on commit 8571be4

Please sign in to comment.