-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/client/nanoid-3.3.8
- Loading branch information
Showing
13 changed files
with
2,136 additions
and
2,062 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 |
---|---|---|
@@ -1,47 +1,19 @@ | ||
# First build SRAM SBS image | ||
FROM python:3.11-slim-bookworm AS sram-sbs | ||
# Build SRAM SBS (apache) server image | ||
FROM ghcr.io/openconext/openconext-basecontainers/apache2:latest AS sram-sbs-server | ||
|
||
# Do an initial clean up and general upgrade of the distribution | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt clean && apt autoclean && apt update | ||
RUN apt -y upgrade && apt -y dist-upgrade | ||
|
||
# Install the packages we need | ||
RUN apt install -y curl \ | ||
git \ | ||
build-essential \ | ||
pkgconf \ | ||
python3-dev \ | ||
default-libmysqlclient-dev \ | ||
libxmlsec1-dev | ||
|
||
# Clean up | ||
RUN apt autoremove -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the default workdir | ||
WORKDIR /opt | ||
|
||
# Install SBS | ||
COPY sbs.tar.xz /opt/sbs.tar.xz | ||
|
||
# Untar sbs | ||
RUN tar -Jxf sbs.tar.xz | ||
|
||
# Create venv dir | ||
#RUN virtualenv /opt/sbs | ||
|
||
#RUN . /opt/sbs/bin/activate && \ | ||
RUN pip install -r /opt/sbs/server/requirements/test.txt | ||
|
||
# Copy entrypoint | ||
COPY misc/entrypoint.sh /entrypoint.sh | ||
RUN chmod 755 /entrypoint.sh | ||
RUN rm -f /etc/apache2/sites-enabled/*.conf | ||
COPY etc/apache-dev.conf /etc/apache2/sites-enabled/apache.conf | ||
|
||
# Set the default workdir | ||
WORKDIR /opt/sbs | ||
|
||
EXPOSE 8080 | ||
WORKDIR /opt | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
#CMD ["bash"] | ||
CMD ["/usr/local/bin/gunicorn --worker-class eventlet --workers 8 --bind 0.0.0.0:8080 server.__main__:app"] | ||
|
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,29 @@ | ||
# Build SRAM SBS (apache) server image | ||
FROM ghcr.io/openconext/openconext-basecontainers/apache2:latest AS sram-sbs-client | ||
|
||
# Do an initial clean up and general upgrade of the distribution | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt clean && apt autoclean && apt update | ||
RUN apt -y upgrade && apt -y dist-upgrade | ||
|
||
# Install the packages we need | ||
RUN apt install -y xz-utils | ||
|
||
# Clean up | ||
RUN apt autoremove -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN rm -f /etc/apache2/sites-enabled/*.conf | ||
COPY etc/apache.conf /etc/apache2/sites-enabled/apache.conf | ||
|
||
RUN a2enmod proxy_wstunnel | ||
|
||
# Set the default workdir | ||
WORKDIR /opt | ||
|
||
# Install SBS | ||
COPY sbs.tar.xz /opt/sbs.tar.xz | ||
|
||
# Untar sbs | ||
RUN tar -Jxf sbs.tar.xz | ||
|
||
#CMD ["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 |
---|---|---|
@@ -1,10 +1,47 @@ | ||
# Build SRAM SBS (apache) server image | ||
FROM ghcr.io/openconext/openconext-basecontainers/apache2:latest AS sram-sbs-server | ||
RUN rm -f /etc/apache2/sites-enabled/*.conf | ||
RUN a2enmod proxy_wstunnel | ||
# First build SRAM SBS image | ||
FROM python:3.11-slim-bookworm AS sram-sbs-server | ||
|
||
# Do an initial clean up and general upgrade of the distribution | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt clean && apt autoclean && apt update | ||
RUN apt -y upgrade && apt -y dist-upgrade | ||
|
||
# Install the packages we need | ||
RUN apt install -y curl \ | ||
git \ | ||
build-essential \ | ||
pkgconf \ | ||
python3-dev \ | ||
default-libmysqlclient-dev \ | ||
libxmlsec1-dev | ||
|
||
# Clean up | ||
RUN apt autoremove -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the default workdir | ||
WORKDIR /opt | ||
|
||
#CMD ["bash"] | ||
# Install SBS | ||
COPY sbs.tar.xz /opt/sbs.tar.xz | ||
|
||
# Untar sbs | ||
RUN tar -Jxf sbs.tar.xz | ||
|
||
# Create venv dir | ||
#RUN virtualenv /opt/sbs | ||
|
||
#RUN . /opt/sbs/bin/activate && \ | ||
RUN pip install -r /opt/sbs/server/requirements/test.txt | ||
|
||
# Copy entrypoint | ||
COPY misc/entrypoint.sh /entrypoint.sh | ||
RUN chmod 755 /entrypoint.sh | ||
|
||
# Set the default workdir | ||
WORKDIR /opt/sbs | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
#CMD ["bash"] | ||
CMD ["/usr/local/bin/gunicorn --worker-class eventlet --workers 8 --bind 0.0.0.0:8080 server.__main__:app"] |
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.