forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
22 lines (20 loc) · 856 Bytes
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Commands to start on workspace startup
image:
file: .gitpod.Dockerfile
vscode:
extensions:
- ggbecker.content-navigator
- ms-vscode.live-server
- rogalmic.bash-debug # support bashdb debug configurations
tasks:
- name: Prepare Env
init: |
[ -z "$PRODUCT" ] && PRODUCT="fedora"
[ -z "$CONTAINER" ] && CONTAINER="fedora:34"
[ -z "$CPE" ] && CPE="cpe:/o:fedoraproject:fedora:34"
mkdir -p .vscode && cp .gitpod.launch.json .vscode/launch.json
sed -i "s/&&DEFAULT_PRODUCT&&/$PRODUCT/g" .vscode/launch.json
sed -i "s,&&CPE&&,$CPE,g" .vscode/launch.json
ssh-keygen -N '' -f ~/.ssh/id_rsa
docker build --build-arg "CLIENT_PUBLIC_KEY=$(cat ~/.ssh/id_rsa.pub)" -t ssg_test_suite --build-arg IMAGE=$CONTAINER -f Dockerfiles/test_suite-fedora .
./build_product $PRODUCT --datastream-only