-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from kristo-baricevic/main
Installing Testing Packages
- Loading branch information
Showing
9,203 changed files
with
1,686,982 additions
and
332 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,18 +1,37 @@ | ||
<<<<<<< HEAD | ||
name: 'Release: Prepare PR' | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
======= | ||
name: "Release: Prepare PR" | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
>>>>>>> afb000d3a3ee90a677a2580d82fe3a432d1c1933 | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
release-prepare: | ||
<<<<<<< HEAD | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: JarvusInnovations/infra-components@channels/github-actions/release-prepare/latest | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-branch: main | ||
======= | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JarvusInnovations/infra-components@channels/github-actions/release-prepare/latest | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-branch: main | ||
>>>>>>> afb000d3a3ee90a677a2580d82fe3a432d1c1933 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
########### | ||
# BUILDER # | ||
########### | ||
|
||
# pull official base image | ||
FROM python:3.11.4-slim-buster as builder | ||
|
||
# set work directory | ||
WORKDIR /usr/src/app | ||
|
||
# set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# install system dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends gcc | ||
|
||
# lint | ||
# RUN pip install --upgrade pip | ||
# RUN pip install flake8==6.0.0 | ||
# COPY . /usr/src/app/ | ||
# RUN flake8 --ignore=E501,F401 . | ||
|
||
# install python dependencies | ||
COPY ./requirements.txt . | ||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -r requirements.txt | ||
|
||
|
||
######### | ||
# FINAL # | ||
######### | ||
|
||
# pull official base image | ||
FROM python:3.11.4-slim-buster | ||
|
||
# create directory for the app user | ||
RUN mkdir -p /home/app | ||
|
||
# create the app user | ||
RUN addgroup --system app && adduser --system --group app | ||
|
||
# create the appropriate directories | ||
ENV HOME=/home/app | ||
ENV APP_HOME=/home/app/web | ||
RUN mkdir $APP_HOME | ||
WORKDIR $APP_HOME | ||
|
||
# install dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends netcat | ||
COPY --from=builder /usr/src/app/wheels /wheels | ||
COPY --from=builder /usr/src/app/requirements.txt . | ||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache /wheels/* | ||
|
||
# copy entrypoint.prod.sh | ||
COPY ./entrypoint.prod.sh . | ||
RUN sed -i 's/\r$//g' $APP_HOME/entrypoint.prod.sh | ||
RUN chmod +x $APP_HOME/entrypoint.prod.sh | ||
|
||
# copy project | ||
COPY . $APP_HOME | ||
|
||
# chown all the files to the app user | ||
RUN chown -R app:app $APP_HOME | ||
|
||
# change to the app user | ||
USER app | ||
|
||
# run entrypoint.prod.sh | ||
ENTRYPOINT ["/home/app/web/entrypoint.prod.sh"] |
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 @@ | ||
module.exports = { | ||
presets: [ | ||
['@babel/preset-env', { targets: { node: 'current' } }], | ||
'@babel/preset-typescript', | ||
'@babel/preset-react', | ||
], | ||
}; | ||
|
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 |
---|---|---|
|
@@ -13,21 +13,21 @@ services: | |
networks: | ||
app_net: | ||
ipv4_address: 192.168.0.2 | ||
# pgadmin: | ||
# container_name: pgadmin4 | ||
# image: dpage/pgadmin4 | ||
# environment: | ||
# PGADMIN_DEFAULT_EMAIL: [email protected] | ||
# PGADMIN_DEFAULT_PASSWORD: balancer | ||
# # PGADMIN_LISTEN_PORT = 80 | ||
# # volumes: | ||
# # - ./pgadmin-data:/var/lib/pgadmin | ||
# # # PGADMIN_LISTEN_PORT = 80 | ||
# ports: | ||
# - "5050:80" | ||
# networks: | ||
# app_net: | ||
# ipv4_address: 192.168.0.4 | ||
pgadmin: | ||
container_name: pgadmin4 | ||
image: dpage/pgadmin4 | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: balancer | ||
# PGADMIN_LISTEN_PORT = 80 | ||
# volumes: | ||
# - ./pgadmin-data:/var/lib/pgadmin | ||
# # PGADMIN_LISTEN_PORT = 80 | ||
ports: | ||
- "5050:80" | ||
networks: | ||
app_net: | ||
ipv4_address: 192.168.0.3 | ||
backend: | ||
image: balancer-backend | ||
build: ./server | ||
|
@@ -42,7 +42,7 @@ services: | |
- ./server:/usr/src/server | ||
networks: | ||
app_net: | ||
ipv4_address: 192.168.0.3 | ||
ipv4_address: 192.168.0.4 | ||
frontend: | ||
image: balancer-frontend | ||
build: | ||
|
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 |
---|---|---|
|
@@ -24,5 +24,3 @@ config/env/env.dev | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
.DS_Store |
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,38 @@ | ||
# This dockerfile builds an image for a static frontend only server suitable for online hosting. | ||
# Use the official Node.js image as the base image | ||
FROM node:18 as builder | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy package.json and package-lock.json | ||
COPY package*.json ./ | ||
|
||
# Set version number | ||
ARG FRONTEND_VERSION | ||
RUN npm version $FRONTEND_VERSION | ||
|
||
# Install dependencies | ||
RUN npm ci --legacy-peer-deps | ||
|
||
# Copy project files | ||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
FROM alpine:latest as nginx-config | ||
RUN apk --no-cache add gettext | ||
WORKDIR /app | ||
COPY nginx.conf.demo ./nginx.conf.demo | ||
# This will get overwritten by helm chart | ||
|
||
ARG SERVER_NAME | ||
ENV SERVER_NAME $SERVER_NAME | ||
RUN cat nginx.conf.demo | envsubst > nginx.conf | ||
|
||
FROM nginx:alpine | ||
|
||
COPY --from=nginx-config /app/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=Builder /usr/src/app/dist /usr/share/nginx/html | ||
|
||
# The default entrypoint works for us. |
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
Oops, something went wrong.