Skip to content

Commit 71bd017

Browse files
committed
Update local run stuff
1 parent 3cda1ba commit 71bd017

File tree

3 files changed

+15
-24
lines changed

3 files changed

+15
-24
lines changed

README.md

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,34 @@
88

99
Create a new submodule
1010

11-
```bash
11+
```shell
1212
cd content/kubevirt/
1313
git submodule add https://github.com/openshift-examples/kubevirt-ansible ansible
1414
```
1515

16-
### Run it with public builder
16+
### Run local
1717

18-
```bash
19-
podman run -ti --user 0 --rm \
20-
-v $(pwd):/opt/app-root/src:z \
21-
-p 8080:8080 quay.io/openshift-examples/builder:devel
18+
```shell
19+
./run-local.sh
2220
```
2321

24-
### Run local pre-commit check
22+
Run local pre-commit via: `./run-local-pre-commit.sh`
2523

26-
```bash
27-
./run-local-pre-commit.sh
28-
```
24+
### Build & push new builder image
2925

30-
### Builder image
26+
```shell
27+
export VERSION=$(date +%Y%m%d%H%M)
28+
export IMAGE=quay.io/openshift-examples/builder:${VERSION}
3129

32-
```bash
33-
export IMAGE='quay.io/openshift-examples/builder:devel'
3430
podman manifest rm ${IMAGE}
35-
podman build --platform linux/amd64,linux/arm64 \
31+
32+
podman build \
33+
--platform linux/amd64,linux/arm64 \
3634
--manifest ${IMAGE} \
3735
--no-cache \
3836
-f builder.Containerfile .
39-
podman manifest push ${IMAGE}
40-
```
41-
42-
#### Run it with local builder image
4337

44-
```bash
45-
podman run -ti --user 0 --rm \
46-
-v $(pwd):/opt/app-root/src:z \
47-
-p 8080:8080 ${IMAGE}
38+
podman manifest push ${IMAGE}
4839
```
4940

5041
## Stargazers over time

run-local-pre-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
podman run -ti --rm -v \
2-
$(pwd):/opt/app-root/src quay.io/openshift-examples/builder:devel \
2+
$(pwd):/opt/app-root/src quay.io/openshift-examples/builder:202511251107 \
33
./helper/run-pre-commit.sh

run-local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
podman run -ti --user 0 --rm \
22
-v $(pwd):/opt/app-root/src:z \
3-
-p 8080:8080 quay.io/openshift-examples/builder:devel
3+
-p 8080:8080 quay.io/openshift-examples/builder:202511251107
44

0 commit comments

Comments
 (0)