mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 14:15:38 +03:00
support of ArekSredzki/electron-release-server
This commit is contained in:
parent
665849f39f
commit
435e50ff6b
@ -1,5 +1,7 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
### 2021
|
### 2021
|
||||||
|
* `september`
|
||||||
|
* added [ArekSredzki/electron-release-server](https://github.com/ArekSredzki/electron-release-server/) support.
|
||||||
* `august`
|
* `august`
|
||||||
* splited `tc-agents` with `nodejs`
|
* splited `tc-agents` with `nodejs`
|
||||||
* fixed `PostgreSQL` images
|
* fixed `PostgreSQL` images
|
||||||
|
27
linux/electron-release-server/Dockerfile
Normal file
27
linux/electron-release-server/Dockerfile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
FROM epicmorg/edge as bootstrap
|
||||||
|
RUN cd /tmp && \
|
||||||
|
git clone https://github.com/ArekSredzki/electron-release-server.git && \
|
||||||
|
tree
|
||||||
|
|
||||||
|
FROM node:10
|
||||||
|
# Create app directory
|
||||||
|
RUN mkdir - p /usr/src/electron-release-server
|
||||||
|
WORKDIR /usr/src/electron-release-server
|
||||||
|
|
||||||
|
# Install app dependencies
|
||||||
|
COPY --from=bootstrap /tmp/electron-release-server/package.json /usr/src/electron-release-server/
|
||||||
|
COPY --from=bootstrap /tmp/electron-release-server/.bowerrc /usr/src/electron-release-server/
|
||||||
|
COPY --from=bootstrap /tmp/electron-release-server/bower.json /usr/src/electron-release-server/
|
||||||
|
|
||||||
|
RUN npm install \
|
||||||
|
&& ./node_modules/.bin/bower install --allow-root \
|
||||||
|
&& npm cache clean --force \
|
||||||
|
&& npm prune --production
|
||||||
|
|
||||||
|
# Bundle app source
|
||||||
|
COPY --from=bootstrap /tmp/electron-release-server/ /usr/src/electron-release-server
|
||||||
|
COPY --from=bootstrap /tmp/electron-release-server/config/docker.js /usr/src/electron-release-server/config/local.js
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
CMD [ "npm", "start" ]
|
5
linux/electron-release-server/Makefile
Normal file
5
linux/electron-release-server/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
all: app
|
||||||
|
|
||||||
|
app:
|
||||||
|
docker-compose build --compress
|
||||||
|
docker-compose push
|
6
linux/electron-release-server/docker-compose.yml
Normal file
6
linux/electron-release-server/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: "epicmorg/electron-release-server:latest"
|
||||||
|
build:
|
||||||
|
context: .
|
29
linux/electron-release-server/docker-compose.yml.example
Normal file
29
linux/electron-release-server/docker-compose.yml.example
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
environment:
|
||||||
|
APP_USERNAME: username
|
||||||
|
APP_PASSWORD: password
|
||||||
|
DB_HOST: db
|
||||||
|
DB_PORT: 5432
|
||||||
|
DB_USERNAME: releaseserver
|
||||||
|
DB_NAME: releaseserver
|
||||||
|
DB_PASSWORD: secret
|
||||||
|
TOKEN_SECRET: change_me_in_production
|
||||||
|
APP_URL: 'localhost:5000'
|
||||||
|
ASSETS_PATH: '/usr/src/electron-release-server/releases'
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
ports:
|
||||||
|
- '5000:80'
|
||||||
|
entrypoint: ./scripts/wait.sh db:5432 -- npm start
|
||||||
|
volumes:
|
||||||
|
- ./releases:/usr/src/electron-release-server/releases
|
||||||
|
db:
|
||||||
|
image: postgres:11
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: secret
|
||||||
|
POSTGRES_USER: releaseserver
|
||||||
|
volumes:
|
||||||
|
- ./postgresql:/var/lib/postgresql/data
|
2
linux/epicmorg/prod/main/.selected_editor
Normal file
2
linux/epicmorg/prod/main/.selected_editor
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Generated by /usr/bin/select-editor
|
||||||
|
SELECTED_EDITOR="/usr/bin/mcedit"
|
@ -71,7 +71,6 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
tini \
|
tini \
|
||||||
tmux \
|
tmux \
|
||||||
tree \
|
tree \
|
||||||
ttf-dejavu \
|
|
||||||
util-linux \
|
util-linux \
|
||||||
uuid-runtime \
|
uuid-runtime \
|
||||||
wget \
|
wget \
|
||||||
@ -80,6 +79,13 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
chmod +x /usr/bin/p4 && \
|
chmod +x /usr/bin/p4 && \
|
||||||
openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Post-cosmetics
|
||||||
|
##################################################################
|
||||||
|
COPY ./.selected_editor /root/.selected_editor
|
||||||
|
COPY ./mc.patch /tmp/mc.patch
|
||||||
|
#RUN patch /tmp/mc.patch /root/.config/mc/ini
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# cleaninig up
|
# cleaninig up
|
||||||
##################################################################
|
##################################################################
|
||||||
@ -87,4 +93,5 @@ RUN apt purge policykit-1 -y && \
|
|||||||
apt clean -y && \
|
apt clean -y && \
|
||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
rm -rfv /var/lib/apt/lists/* && \
|
rm -rfv /var/lib/apt/lists/* && \
|
||||||
|
rm -rfv /tmp/mc.patch && \
|
||||||
rm -rfv /var/cache/apt/archives/*.deb
|
rm -rfv /var/cache/apt/archives/*.deb
|
||||||
|
17
linux/epicmorg/prod/main/mc.patch
Normal file
17
linux/epicmorg/prod/main/mc.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
86,88c86
|
||||||
|
< skin=default
|
||||||
|
<
|
||||||
|
< filepos_max_saved_entries=1024
|
||||||
|
---
|
||||||
|
> skin=dark
|
||||||
|
109c107
|
||||||
|
< display_codepage=ASCII
|
||||||
|
---
|
||||||
|
> display_codepage=UTF-8
|
||||||
|
132c130
|
||||||
|
< navigate_with_arrows=false
|
||||||
|
---
|
||||||
|
> navigate_with_arrows=true
|
||||||
|
140a139,140
|
||||||
|
>
|
||||||
|
> simple_swap=false
|
Loading…
Reference in New Issue
Block a user