-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix deployment * Fix docker containers * reconnect to main
- Loading branch information
Showing
15 changed files
with
125 additions
and
60 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM ghcr.io/opensource-observer/oso-public-vars:latest AS public_vars | ||
|
||
|
||
FROM ubuntu:jammy | ||
|
||
ARG GCLOUD_VERSION=503.0.0 | ||
ARG PYTHON_VERSION=3.12 | ||
ARG PYTHON_PACKAGE=python3.12 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common && \ | ||
add-apt-repository ppa:deadsnakes/ppa && \ | ||
apt-get update && \ | ||
apt-get install -y ${PYTHON_PACKAGE} && \ | ||
apt-get install -y curl git && \ | ||
curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py && \ | ||
python${PYTHON_VERSION} get-pip.py && \ | ||
pip${PYTHON_VERSION} install poetry && \ | ||
curl -o gcloud.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_VERSION}-linux-x86_64.tar.gz && \ | ||
tar xvf gcloud.tar.gz && \ | ||
bash ./google-cloud-sdk/install.sh && \ | ||
rm gcloud.tar.gz && true | ||
ENV PATH $PATH:/google-cloud-sdk/bin | ||
|
||
COPY --from=public_vars ./public/vars.env /public-vars.env | ||
|
||
ENTRYPOINT ["/bin/bash"] |
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 @@ | ||
oso-base |
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,16 @@ | ||
ARG REPO_SHA=latest | ||
|
||
FROM ghcr.io/opensource-observer/oso-base:${REPO_SHA} | ||
|
||
ARG PYTHON_VERSION=3.12 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y vim curl git htop postgresql-client && \ | ||
curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh && \ | ||
bash nodesource_setup.sh && \ | ||
mkdir -p /usr/src/app && \ | ||
apt-get install nodejs && \ | ||
npm install -g pnpm | ||
|
||
# A docker image for debugging | ||
ENTRYPOINT ["/bin/bash"] |
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,17 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
mkdir -p /usr/src/app | ||
cd /usr/src/app | ||
|
||
curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh | ||
bash nodesource_setup.sh | ||
|
||
git clone https://github.com/opensource-observer/oso.git | ||
cd oso | ||
|
||
poetry install | ||
pnpm install | ||
|
||
while true; do sleep 300; done; |
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
8 changes: 8 additions & 0 deletions
8
ops/helm-charts/metrics-calculation-service/templates/secrets.yaml
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,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "mcs.fullname" . }}-secrets | ||
type: Opaque | ||
data: | ||
gcs_key_id: {{ .Values.mcs.gcs.key_id | b64enc }} | ||
gcs_secret: {{ .Values.mcs.gcs.secret | b64enc }} |
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