From d7bf3939ef050883aa7c76f1ed1268b5cf527805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Casta=C3=B1o=20Arteaga?= Date: Fri, 10 Feb 2023 16:27:44 +0100 Subject: [PATCH] Fix gitpod environment (#2758) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergio Castaño Arteaga Signed-off-by: Cintia Sanchez Garcia Co-authored-by: Sergio Castaño Arteaga Co-authored-by: Cintia Sanchez Garcia --- .gitpod.yml | 2 +- .gitpod/Dockerfile | 11 +++++++---- .gitpod/hub.yaml | 11 +++++++++++ .gitpod/tracker.yaml | 1 + 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 88bcb32b..a7d5dfff 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -12,7 +12,7 @@ tasks: - name: Backend init: | echo -e "\n- Setting up database..\n" - cd && go get -u github.com/jackc/tern + cd && go install github.com/jackc/tern@latest cd /tmp && git clone https://github.com/pgpartman/pg_partman && cd pg_partman && sudo make NO_BGW=1 install psql -c 'create database hub' cd /workspace/hub/database/migrations && TERN_CONF=/workspace/hub/.gitpod/tern.conf ./migrate.sh diff --git a/.gitpod/Dockerfile b/.gitpod/Dockerfile index 5e9a5afe..f1710b31 100644 --- a/.gitpod/Dockerfile +++ b/.gitpod/Dockerfile @@ -1,6 +1,9 @@ FROM gitpod/workspace-postgres -RUN wget https://github.com/aquasecurity/trivy/releases/download/v0.36.1/trivy_0.36.1_Linux-64bit.deb && \ - sudo dpkg -i trivy_0.36.1_Linux-64bit.deb -RUN sudo wget https://github.com/operator-framework/operator-registry/releases/download/v1.26.2/linux-amd64-opm -O /usr/local/bin/opm && \ - sudo chmod +x /usr/local/bin/opm +RUN wget https://github.com/aquasecurity/trivy/releases/download/v0.36.1/trivy_0.36.1_Linux-64bit.deb \ + && sudo dpkg -i trivy_0.36.1_Linux-64bit.deb +RUN sudo wget https://github.com/operator-framework/operator-registry/releases/download/v1.26.2/linux-amd64-opm -O /usr/local/bin/opm \ + && sudo chmod +x /usr/local/bin/opm +RUN wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.11.0.tar.gz \ + && sudo tar -C /usr/local -xzf libtensorflow-cpu-linux-x86_64-2.11.0.tar.gz \ + && sudo ldconfig /usr/local/lib diff --git a/.gitpod/hub.yaml b/.gitpod/hub.yaml index 603b7014..179c1c45 100644 --- a/.gitpod/hub.yaml +++ b/.gitpod/hub.yaml @@ -12,3 +12,14 @@ server: shutdownTimeout: 10s webBuildPath: ../../web/build widgetBuildPath: ../../widget/build +theme: + colors: + primary: "#417598" + secondary: "#2D4857" + images: + appleTouchIcon192: "/static/media/logo192_v2.png" + appleTouchIcon512: "/static/media/logo512_v2.png" + openGraphImage: "/static/media/artifactHub_v2.png" + shortcutIcon: "/static/media/logo_v2.png" + websiteLogo: "/static/media/logo/artifacthub-brand-white.svg" + siteName: "Artifact Hub" diff --git a/.gitpod/tracker.yaml b/.gitpod/tracker.yaml index a7353f28..ed1db461 100644 --- a/.gitpod/tracker.yaml +++ b/.gitpod/tracker.yaml @@ -14,3 +14,4 @@ tracker: repositoriesNames: [] repositoriesKinds: [] bypassDigestCheck: false + categoryModelPath: ../../ml/category/model