Skip to content

Commit cb7a0a4

Browse files
authored
Merge pull request #11 from lmbelo/main
Update, bugfix and automation
2 parents 2de72b1 + 0d6a10d commit cb7a0a4

File tree

8 files changed

+65
-23
lines changed

8 files changed

+65
-23
lines changed
+31
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 "localhost" 3050
28+
29+
- name: Docker Push
30+
run: |
31+
docker push -a radstudio/pa-radserver
+19
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 "localhost" 3050

Dockerfile

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ ENV PA_SERVER_PASSWORD=$password
1111
#INSTALL APACHE AND OTHER LIBS
1212
RUN apt-get update && \
1313
DEBIAN_FRONTEND=noninteractive apt-get -yy --no-install-recommends install \
14-
apache2 \
14+
joe \
15+
wget \
16+
p7zip-full \
17+
curl \
18+
openssh-server \
1519
build-essential \
16-
libcurl4-openssl-dev \
17-
libcurl4 \
18-
libgl1-mesa-dev \
19-
libgtk-3-bin \
20-
libosmesa-dev \
20+
zlib1g-dev \
21+
libcurl4-gnutls-dev \
22+
libncurses5 \
2123
libpython3.10 \
22-
unzip \
23-
xorg
24+
apache2 \
25+
unzip
2426
RUN apt-get -y autoremove && apt-get -y autoclean
2527
#====END OTHER LIBS
2628

@@ -109,8 +111,6 @@ RUN service apache2 restart
109111
EXPOSE 80
110112
# PAServer
111113
EXPOSE 64211
112-
# broadwayd
113-
EXPOSE 8082
114114

115115
#need this to make the apache daemon run in foreground
116116
#prevent container from ending when docker is started

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Docker script to build RAD Studio Linux deployment image including RAD Server en
1010
- More information on [RAD Studio](https://www.embarcadero.com/products/rad-studio)
1111
- Other containers: [InterBase](https://github.com/Embarcadero/InterBase-Docker), [PAServer](https://github.com/Embarcadero/paserver-docker) and [RAD Server with InterBase](https://github.com/Embarcadero/pa-radserver-ib-docker).
1212

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

1515
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)
1616

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ if [ "$1" = '' ] || [ "$2" = '' ]; then
66
echo "ex: run.sh example.com 3050";
77
else
88
echo "PAServer Password: securepass"
9-
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -it --mount source=ems,target=/etc/ems -e DB_PORT=$2 -e DB_HOST=$1 -e PA_SERVER_PASSWORD=securepass -p 80:80 -p 64211:64211 -p 8082:8082 pa-radserver-custom-module
10-
fi
9+
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -it --mount source=ems,target=/etc/ems -e DB_PORT=$2 -e DB_HOST=$1 -e PA_SERVER_PASSWORD=securepass -p 80:80 -p 64211:64211 pa-radserver-custom-module
10+
fi

radserver_docker.sh

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#!/bin/bash
22

3-
if [ "$CONFIG" = "PRODUCTION" ]; then
4-
:
5-
else
6-
nohup broadwayd :2 &
7-
export GDK_BACKEND=broadway
8-
export BROADWAY_DISPLAY=:2
9-
fi
10-
113
#search and replace ems ini file InstanceName
124
if [ "$DB_HOST" = "" ]; then
135
:

run-production.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ if [ "$1" = '' ] || [ "$2" = '' ]; then
55
echo "Required arguments: RAD Server database (InterBase) host and port";
66
echo "ex: run-production.sh example.com 3050";
77
else
8-
docker run -d --platform linux/amd64 --mount source=ems,target=/etc/ems -e DB_PORT=$2 -e DB_HOST=$1 -e CONFIG=PRODUCTION -p 80:80 radstudio/pa-radserver:latest
8+
docker run -d -t --platform linux/amd64 --mount source=ems,target=/etc/ems -e DB_PORT=$2 -e DB_HOST=$1 -e CONFIG=PRODUCTION -p 80:80 radstudio/pa-radserver:latest
99
fi

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ else
99
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --platform linux/amd64 \
1010
-it --mount source=ems,target=/etc/ems \
1111
-e DB_PORT=$2 -e DB_HOST=$1 \
12-
-e PA_SERVER_PASSWORD=securepass -p 80:80 -p 64211:64211 -p 8082:8082 \
12+
-e PA_SERVER_PASSWORD=securepass -p 80:80 -p 64211:64211 \
1313
radstudio/pa-radserver:latest
1414
fi

0 commit comments

Comments
 (0)