Skip to content

Commit 1db5721

Browse files
authored
Merge pull request #13 from lmbelo/main
Update, bugfix and automation
2 parents bf3d330 + 56185b9 commit 1db5721

File tree

9 files changed

+65
-23
lines changed

9 files changed

+65
-23
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Docker Image CI - Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# Manual run
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
publish:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Docker Hub Login
19+
env:
20+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
21+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
22+
run: |
23+
echo "$DOCKER_TOKEN" | docker login --username $DOCKER_USERNAME --password-stdin
24+
25+
- name: Build the Docker image
26+
run: |
27+
bash ./build.sh
28+
29+
- name: Docker Push
30+
run: |
31+
docker push -a radstudio/pa-radserver-ib
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docker Image CI - Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
test:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build the Docker image
18+
run: |
19+
bash ./build.sh

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ ENV PA_SERVER_PASSWORD=$password
77
#INSTALL APACHE AND OTHER LIBS
88
RUN apt-get update && \
99
DEBIAN_FRONTEND=noninteractive apt-get -yy --no-install-recommends install \
10-
apache2 \
10+
joe \
11+
wget \
12+
p7zip-full \
13+
curl \
14+
openssh-server \
1115
build-essential \
12-
libcurl4-openssl-dev \
13-
libcurl4 \
14-
libgl1-mesa-dev \
15-
libgtk-3-bin \
16-
libosmesa-dev \
16+
zlib1g-dev \
17+
libcurl4-gnutls-dev \
18+
libncurses5 \
1719
libpython3.10 \
20+
apache2 \
1821
unzip \
19-
xorg \
2022
&& apt-get -y autoremove \
2123
&& apt-get -y autoclean
2224
#====END OTHER LIBS
@@ -106,8 +108,6 @@ RUN service apache2 restart
106108
EXPOSE 80
107109
# PAServer
108110
EXPOSE 64211
109-
# broadwayd
110-
EXPOSE 8082
111111
#Interbase
112112
EXPOSE 3050
113113

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Docker script to build RAD Studio Linux deployment including RAD Server engine a
99
- More information on [RAD Studio](https://www.embarcadero.com/products/rad-studio)
1010
- Other containers: [InterBase](https://github.com/Embarcadero/InterBase-Docker) only, [PAServer](https://github.com/Embarcadero/paserver-docker) and [RAD Server container](https://github.com/Embarcadero/pa-radserver-docker).
1111

12-
The image defaults to running **PAServer** on port `64211` with the _password_ `securepass`, and **Broadwayd** on port `8082`
12+
The image defaults to running **PAServer** on port `64211` with the _password_ `securepass`
1313

1414
The 10.x images use Ubuntu 18.04.6 LTS (Bionic Beaver) while the 11.x images use Ubuntu 22.04.1 LTS (Jammy Jellyfish)
1515

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
echo "PAServer Password: securepass"
4-
docker run -d -e CONFIG=PRODUCTION -e PA_SERVER_PASSWORD=securepass -p 80:80 -p 64211:64211 -p 8082:8082 -p 3050:3050 --mount source=interbase,target=/opt/interbase --mount source=ems,target=/etc/ems pa-radserver-ib-custom-module
4+
docker run -d -e CONFIG=PRODUCTION -e PA_SERVER_PASSWORD=securepass -p 80:80 -p 64211:64211 -p 3050:3050 --mount source=interbase,target=/opt/interbase --mount source=ems,target=/etc/ems pa-radserver-ib-custom-module

Solutions/Custom-RAD-Server-Module/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo "PAServer Password: securepass"
44
docker run -it -e PA_SERVER_PASSWORD=securepass \
55
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
6-
-p 80:80 -p 64211:64211 -p 8082:8082 -p 3050:3050 \
6+
-p 80:80 -p 64211:64211 -p 3050:3050 \
77
--mount source=interbase,target=/opt/interbase \
88
--mount source=ems,target=/etc/ems \
9-
pa-radserver-ib-custom-module
9+
pa-radserver-ib-custom-module

radserver_docker.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ if [ -f /etc/ems/module.so ]; then
1515
sed -i ':a;N;$!ba;s#\[Server\.Packages\]\n#\[Server\.Packages\]\n/etc/ems/module.so=module#g' /etc/ems/emsserver.ini
1616
fi
1717

18-
if [ "$CONFIG" = "PRODUCTION" ]; then
19-
:
20-
else
21-
nohup broadwayd :2 &
22-
export GDK_BACKEND=broadway
23-
export BROADWAY_DISPLAY=:2
24-
fi
25-
2618
/usr/sbin/apachectl -D Foreground
2719
status=$?
2820
if [ $status -ne 0 ]; then

run-production.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
echo "PAServer Password: securepass"
44
docker run -it -e PA_SERVER_PASSWORD=securepass \
5-
-p 80:80 -p 64211:64211 -p 8082:8082 -p 3050:3050 \
5+
-p 80:80 -p 64211:64211 -p 3050:3050 \
66
--mount source=interbase,target=/opt/interbase \
77
--mount source=ems,target=/etc/ems \
88
--platform linux/amd64 \

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo "PAServer Password: securepass"
44
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
55
-it -e PA_SERVER_PASSWORD=securepass \
6-
-p 80:80 -p 64211:64211 -p 8082:8082 -p 3050:3050 \
6+
-p 80:80 -p 64211:64211 -p 3050:3050 \
77
--mount source=interbase,target=/opt/interbase \
88
--mount source=ems,target=/etc/ems \
99
--platform linux/amd64 \

0 commit comments

Comments
 (0)