-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from kim-tsao/update-scripts
Update scripts to work with podman
- Loading branch information
Showing
9 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Troubelshooting the Devfile Registry | ||
# Troubleshooting the Devfile Registry | ||
|
||
## Collecting Logs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
# This script builds a devfile registry index container image based on the mock devfile registry data under tests/registry | ||
# This can be useful if developing components within this repository (such as the index server or build tools) | ||
# and want to test all of the components together | ||
|
||
shopt -s expand_aliases | ||
set -eux | ||
#set the docker alias if necessary | ||
. ./setenv.sh | ||
|
||
# Build the index server base image | ||
./index/server/build.sh | ||
. ./index/server/build.sh | ||
|
||
# Build the test devfile registry image | ||
docker build -t devfile-index:latest -f .ci/Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# This script aliases the docker cli if the environment variable USE_PODMAN is set to true. | ||
|
||
# default value is false if USE_PODMAN is unset or null | ||
podman=${USE_PODMAN:-false} | ||
if [ ${podman} == true ]; then | ||
alias docker=podman | ||
echo "setting alias docker=podman" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/sh | ||
|
||
#set the docker alias if necessary | ||
. ../../setenv.sh | ||
|
||
IMAGE_TAG=$1 | ||
docker tag devfile-registry-integration $IMAGE_TAG | ||
docker push $IMAGE_TAG |