1
0
Fork 0

Compare commits

..

9 Commits

Author SHA1 Message Date
Dustin 9334160e89 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:32:18 -05:00
Dustin 3db3295493 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:32:18 -05:00
Dustin fb0a1a7a2d 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:32:18 -05:00
Dustin 034da237ad ci: Build container image
This image will be used to deploy the application on the Kubernetes
cluster.
2022-08-02 21:32:18 -05:00
Dustin 337406e0a0 svc: Remove playwright dependency 2022-08-02 21:13:39 -05:00
Dustin 6c02df9d28 svc: Update poetry.lock 2022-08-02 21:13:39 -05:00
Dustin 9f5d6942b7 ui: update package-lock.json 2022-08-02 21:13:39 -05:00
Dustin 3c27f984d2 svc: Use released aiomarionette 2022-08-02 21:13:39 -05:00
Dustin d5a61994c6 ci: Begin Jenkins build pipeline 2022-08-02 21:13:39 -05:00
6 changed files with 18 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
ui/*.tar.gz

View File

@ -1,5 +1,5 @@
#!/bin/sh -ex
cp -r ui/dist container/ui
cp -r svc/dist container/wheels
podman build -t hudctrl:${BUILD_NUMBER} container
cp -r ui/dist container/ui
podman build -t hudctrl:${BUILD_TAG} container

View File

@ -10,5 +10,5 @@ mkdir node_modules
npm ci
npm run build
cd dist
find . -mindepth 1 -maxdepth 1 -printf '%P\0' | xargs -0 tar -czf ../hudctrl-ui.tar.gz
find dist -mindepth 1 -maxdepth 1 -printf '%P\0' \
| xargs -0 tar -czf hudctrl-ui.tar.gz -C dist

View File

@ -22,7 +22,7 @@ spec:
value: '--max_old_space_size=512'
resources:
limits:
memory: 1536M
memory: 1G
cpu: 1.0
securityContext:
readOnlyRootFilesystem: true

View File

@ -1,3 +1,12 @@
#!/bin/sh -ex
podman push hudctrl:${BUILD_ID} registry.pyrocufflink.blue/hudctrl:${BUILD_ID}
push() {
tag=$(echo "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g' -e 's/^[.-]/_/')
podman push hudctrl:${BUILD_TAG} registry.pyrocufflink.blue/hudctrl:${tag}
}
push ${BUILD_TAG}
push ${BRANCH_NAME}
if [ "${BRANCH_NAME}" = master ]; then
push latest
fi

2
container/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
ui/
wheels/