mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Reworked everything again
This commit is contained in:
parent
9f4041de78
commit
e53588b402
@ -4,7 +4,7 @@ After you've cloned the repository, traverse into the `maloja` folder with `cd m
|
|||||||
|
|
||||||
Your system needs several packages installed. On Alpine, this can be done with
|
Your system needs several packages installed. On Alpine, this can be done with
|
||||||
|
|
||||||
`sh ./install/alpine_requirements.sh`
|
`sh ./install/install_dependencies.sh`
|
||||||
|
|
||||||
For other distros, try to find the equivalents of the packages listed or simply check your error output.
|
For other distros, try to find the equivalents of the packages listed or simply check your error output.
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@ WORKDIR /usr/src/app
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Build dependencies
|
# Build dependencies (This will pipe all packages from the file)
|
||||||
sh ./install/alpine_requirements_build_volatile.sh && \
|
sed 's/#.*//' ./install/dependencies_build.txt | xargs apk add --no-cache --virtual .build-deps && \
|
||||||
# Runtime dependencies
|
# Runtime dependencies (Same)
|
||||||
sh ./install/alpine_requirements_run.sh && \
|
sed 's/#.*//' ./install/dependencies_run.txt | xargs apk add && \
|
||||||
# Python dependencies
|
# Python dependencies
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --no-cache-dir -r requirements.txt && \
|
||||||
# Local project install
|
# Local project install
|
||||||
|
@ -11,10 +11,10 @@ WORKDIR /usr/src/app
|
|||||||
COPY ./install ./install
|
COPY ./install ./install
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Build dependencies
|
# Build dependencies (This will pipe all packages from the file)
|
||||||
sh ./install/alpine_requirements_build_volatile.sh && \
|
sed 's/#.*//' ./install/dependencies_build.txt | xargs apk add --no-cache --virtual .build-deps && \
|
||||||
# Runtime dependencies
|
# Runtime dependencies (Same)
|
||||||
sh ./install/alpine_requirements_run.sh && \
|
sed 's/#.*//' ./install/dependencies_run.txt | xargs apk add && \
|
||||||
|
|
||||||
|
|
||||||
# PyPI install
|
# PyPI install
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
sh ./install/alpine_requirements_run.sh
|
|
||||||
sh ./install/alpine_requirements_build.sh
|
|
@ -1 +0,0 @@
|
|||||||
apk add gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers
|
|
@ -1 +0,0 @@
|
|||||||
apk add --no-cache --virtual .build-deps gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers
|
|
@ -1 +0,0 @@
|
|||||||
apk add python3 python3-dev imagemagick tzdata
|
|
6
install/dependencies_build.txt
Normal file
6
install/dependencies_build.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
gcc
|
||||||
|
libxml2-dev
|
||||||
|
libxslt-dev
|
||||||
|
py3-pip
|
||||||
|
libc-dev
|
||||||
|
linux-headers
|
4
install/dependencies_run.txt
Normal file
4
install/dependencies_run.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
python3
|
||||||
|
python3-dev
|
||||||
|
imagemagick
|
||||||
|
tzdata
|
2
install/install_dependencies.sh
Normal file
2
install/install_dependencies.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
sed 's/#.*//' ./install/dependencies_run.txt | xargs apk add
|
||||||
|
sed 's/#.*//' ./install/dependencies_build.txt | xargs apk add
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
sh ./install/alpine_requirements_run.sh
|
sed 's/#.*//' ./install/deps_build.txt | xargs apk add
|
||||||
sh ./install/alpine_requirements_build.sh
|
sed 's/#.*//' ./install/deps_run.txt | xargs apk add
|
||||||
pip3 install wheel
|
pip3 install wheel
|
||||||
pip3 install malojaserver
|
pip3 install malojaserver
|
||||||
|
Loading…
Reference in New Issue
Block a user