1
0
Fork 0

Compare commits

..

4 Commits

Author SHA1 Message Date
Dustin 6843da9fa3 svc: Set venv path for Pyright
dustin/hudctrl/pipeline/head There was a failure building this commit Details
Need to set the path to the Python venv for Pyright in order to get
valid diagnostics in Neovim.
2022-08-02 21:36:59 -05:00
Dustin 9433d4273d svc: Update to aiomarionette 0.0.3
Older versions hard-coded using the `AF_INET6` address family, even for
IPv4 addresses.  While this "worked on my machine," it did not work when
the application was deployed to the Kubernetes cluster.  Either cri-o or
the Debian-based *python* container image must disable this somehow.
2022-08-02 21:36:59 -05:00
Dustin 6e53569d7a svc: api: Get URLs file path from env var
The `HUDCTRL_URLS_FILE` environment variable can be used to specify the
location to the `urls.json` file.
2022-08-02 21:36:59 -05:00
Dustin 396f26277f ci: Build container image
This image will be used to deploy the application on the Kubernetes
cluster.
2022-08-02 21:36:59 -05:00
3 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -ex
. ci/container-common.sh
cp -r svc/dist container/wheels
cp -r ui/dist container/ui
podman build -t hudctrl:${BUILD_TAG} container
podman build -t hudctrl:$(tag_name ${BUILD_TAG}) container

10
ci/container-common.sh Normal file
View File

@ -0,0 +1,10 @@
# shellcheck: shell=sh
tag_name() {
echo "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g' -e 's/^[.-]/_/'
}
push() {
tag=$(tag_name $1)
podman push hudctrl:${BUILD_TAG} registry.pyrocufflink.blue/hudctrl:${tag}
}

View File

@ -1,9 +1,6 @@
#!/bin/sh -ex
push() {
tag=$(echo "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g' -e 's/^[.-]/_/')
podman push hudctrl:${BUILD_TAG} registry.pyrocufflink.blue/hudctrl:${tag}
}
. ci/container-common.sh
push ${BUILD_TAG}
push ${BRANCH_NAME}