Skip to content

Commit a3059b3

Browse files
authored
Merge pull request #21 from lmbelo/main
Update, bugfix and automation
2 parents b841cc3 + c4ad98c commit a3059b3

7 files changed

+55
-15
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
28+
29+
- name: Docker Push
30+
run: |
31+
docker push -a radstudio/paserver
+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

Dockerfile

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ RUN apt-get update && \
1616
zlib1g-dev \
1717
libcurl4-gnutls-dev \
1818
libncurses5 \
19-
libgl1-mesa-dev \
20-
libgtk-3-bin \
21-
libosmesa-dev \
22-
libpython3.10 \
23-
xorg
19+
libpython3.10
2420

2521
### Install PAServer
2622
ADD https://altd.embarcadero.com/releases/studio/23.0/121/1211/LinuxPAServer23.0.tar.gz ./paserver.tar.gz
@@ -39,7 +35,5 @@ RUN chmod +x paserver_docker.sh
3935

4036
# PAServer
4137
EXPOSE 64211
42-
# broadwayd
43-
EXPOSE 8082
4438

4539
CMD ./paserver_docker.sh

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Docker script for RAD Studio Linux deployment via PAServer
77
- [More information on RAD Studio](https://www.embarcadero.com/products/rad-studio)
88
- Other containers: [InterBase](https://github.com/Embarcadero/InterBase-Docker) only, [RAD Server](https://github.com/Embarcadero/pa-radserver-docker), and [RAD Server with InterBase](https://github.com/Embarcadero/pa-radserver-ib-docker)
99

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

1212
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)
1313

@@ -28,7 +28,7 @@ To pull and run the Docker Hub version of PAServer Docker for a non-debug/produc
2828
./pull-run-production.sh securepass123
2929
```
3030

31-
To run the Docker Hub version of PAServer Docker for a debug/non-production environment use the `pull-run.sh` script
31+
To run the Docker Hub version of PAServer Docker for a debug/non-production environment use the `run.sh` script
3232
```
3333
./run.sh
3434
```

paserver_docker.sh

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

3-
nohup broadwayd :2 &
4-
export GDK_BACKEND=broadway
5-
export BROADWAY_DISPLAY=:2
6-
73
./paserver -password=$PA_SERVER_PASSWORD
84
status=$?
95
if [ $status -ne 0 ]; then

run-production.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ if [ "$1" = '' ]; then
55
echo "Required arguments: PAServer password";
66
echo "ex: run-production.sh securepass";
77
else
8-
docker run --platform linux/amd64 -d -t -e PA_SERVER_PASSWORD=$1 -p 64211:64211 -p 8082:8082 radstudio/paserver:latest
8+
docker run --platform linux/amd64 -d -t -e PA_SERVER_PASSWORD=$1 -p 64211:64211 radstudio/paserver:latest
99
fi

run.sh

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

33
echo "PAServer Password: securepass"
4-
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --platform linux/amd64 -it -e PA_SERVER_PASSWORD=securepass -p 64211:64211 -p 8082:8082 radstudio/paserver:latest
4+
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --platform linux/amd64 -it -e PA_SERVER_PASSWORD=securepass -p 64211:64211 radstudio/paserver:latest

0 commit comments

Comments
 (0)