-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to using a .env file for Docker image versions
Signed-off-by: Daniel Moore <[email protected]>
- Loading branch information
Showing
13 changed files
with
168 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
TAG=0.0.3 |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.admin-panel.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.iso15118-dc.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.two-evse.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
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
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