Skip to content

Commit

Permalink
fix: add correct env vars (#353)
Browse files Browse the repository at this point in the history
* fix dockle scan on ci

* fix registry login

* debug imgs

* scan tar imgs

* test

* add tar cleanup

* test

* pr workflow fix

* declutter dockle

* add comment

* add microservice in pr comment

* test w/ individual service failing

* fix dockerfile

* fix: vote table row responsiveness

* Refactor/change logic for file upload to S3 (#328)

* refactor: changed getFileUrl function in order to display images on website for longer than 7 days

* refactor: changed getFileUrl function in order to display images on website for longer than 7 days

* feat: dht-queue (#336)

Added persistent dht-queue which will be responsible for publishing cid to dht

* refactor: image upload to S3 (#337)

* fitx/rationale-governance-format

Rationale - Removed body.references since it will be empty until CC-portal enables that feature
GAP title and abstract is now parsing in compatibility with CIP-0108 (body.title, body.abstract)

* chore: change guides btn link

* fix: rm-gap-title-abstract-len-constraint

Remove len constraints for gap.title and gap.abstract (was 80 and 2500 char length)
fixed error if db data is undefined when fetching from db sync

* refactor: add redis username

Added username env variable within backend/worker-service/ipfs-service

* Fix add redis creds (#343)

* feat: add redis user

* fix: add config to worker-service

* fix-add-redis-creds: fixed order within example.env

* fix: add docker compose args

---------

Co-authored-by: nike-getto <[email protected]>
Co-authored-by: BEDev24 <[email protected]>

* Fix add redis creds (#344)

* feat: add redis user

* fix: add config to worker-service

* fix-add-redis-creds: fixed order within example.env

* fix: add docker compose args

* refactor: cache docker-compose

---------

Co-authored-by: nike-getto <[email protected]>
Co-authored-by: BEDev24 <[email protected]>

* fix: typo

* fix: typo

* refactor: cache service

* refactor/redis-auth (#345)

* fix: plural grammar corrections

* refactor: pruning worker processors (#346)

* fix: latest updates content overlaping

* refactor: ipfs service path and minor refactoring

* fix: usersnap remove other buttons (#323)

* fix: Overlapping on tables

* fix: don't show top banner on mainnet

* fix: show more btn not loading more content, update env example

* refactor: renamed migration name for gap len constraint removal

* refactor: ipfs volume

* add correct vars (#352)

Co-authored-by: nike-getto <[email protected]>

---------

Co-authored-by: Baja-KS <[email protected]>
Co-authored-by: Lazar Lukić <[email protected]>
Co-authored-by: Vojimirovich <[email protected]>
Co-authored-by: Vojimirovich <[email protected]>
Co-authored-by: nike-getto <[email protected]>
Co-authored-by: BEDev24 <[email protected]>
Co-authored-by: kubet <[email protected]>
  • Loading branch information
8 people authored Sep 13, 2024
1 parent b14b1be commit f3cb199
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REDIS_PASSWORD=password
12 changes: 9 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ ENV NEXT_TELEMETRY_DISABLED 1

# Define build arguments for environment variables
ARG NEXT_PUBLIC_API_URL
ARG NEXT_PUBLIC_USERSNAP_GLOBAL_API_KEY
ARG NEXT_PUBLIC_USERSNAP_SPACE_API_KEY
ARG NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY
ARG NEXT_PUBLIC_HIDDEN_USERSNAP_PROJECT_IDS
ARG NEXT_PUBLIC_IS_MAINNET

# Set the environment variables inside the container
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
ENV NEXT_PUBLIC_USERSNAP_GLOBAL_API_KEY=${NEXT_PUBLIC_USERSNAP_GLOBAL_API_KEY}
ENV NEXT_PUBLIC_USERSNAP_SPACE_API_KEY=${NEXT_PUBLIC_USERSNAP_SPACE_API_KEY}
ENV NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY=${NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY}
ENV NEXT_PUBLIC_HIDDEN_USERSNAP_PROJECT_IDS=${NEXT_PUBLIC_HIDDEN_USERSNAP_PROJECT_IDS}
ENV NEXT_PUBLIC_IS_MAINNET=${NEXT_PUBLIC_IS_MAINNET}

RUN \
if [ -f yarn.lock ]; then yarn run build; \
Expand All @@ -52,8 +56,10 @@ ENV NODE_ENV production
# Disabled telemetry during runtime.
ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
ENV NEXT_PUBLIC_USERSNAP_GLOBAL_API_KEY=${NEXT_PUBLIC_USERSNAP_GLOBAL_API_KEY}
ENV NEXT_PUBLIC_USERSNAP_SPACE_API_KEY=${NEXT_PUBLIC_USERSNAP_SPACE_API_KEY}
ENV NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY=${NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY}
ENV NEXT_PUBLIC_HIDDEN_USERSNAP_PROJECT_IDS=${NEXT_PUBLIC_HIDDEN_USERSNAP_PROJECT_IDS}
ENV NEXT_PUBLIC_IS_MAINNET=${NEXT_PUBLIC_IS_MAINNET}

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
Expand Down

0 comments on commit f3cb199

Please sign in to comment.