Skip to content

Commit 1c77db6

Browse files
Merge pull request #109 from OneBusAway/maven-central
Switch from GitHub's Maven repo to Maven Central for required artifacts
2 parents b5d0471 + c2391ba commit 1c77db6

File tree

10 files changed

+0
-73
lines changed

10 files changed

+0
-73
lines changed

.github/workflows/docker.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ jobs:
5454
tags: |
5555
ghcr.io/onebusaway/${{ matrix.name }}:latest
5656
ghcr.io/onebusaway/${{ matrix.name }}:${{ github.sha }}
57-
build-args: |
58-
PAT_USERNAME_FOR_GH=${{ secrets.PAT_USERNAME_FOR_GH }}
59-
PAT_TOKEN_FOR_GH=${{ secrets.PAT_TOKEN_FOR_GH }}
6057
6158
buildx-release:
6259
if: ${{ github.event_name == 'release' }}
@@ -101,6 +98,3 @@ jobs:
10198
push: true
10299
tags: |
103100
opentransitsoftwarefoundation/${{ matrix.name }}:${{ env.IMAGE_TAG }}
104-
build-args: |
105-
PAT_USERNAME_FOR_GH=${{ secrets.PAT_USERNAME_FOR_GH }}
106-
PAT_TOKEN_FOR_GH=${{ secrets.PAT_TOKEN_FOR_GH }}

.github/workflows/test.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,13 @@ jobs:
2222
docker buildx build \
2323
--load \
2424
-t bundler-image:latest \
25-
--build-arg PAT_USERNAME_FOR_GH=${{ secrets.PAT_USERNAME_FOR_GH }} \
26-
--build-arg PAT_TOKEN_FOR_GH=${{ secrets.PAT_TOKEN_FOR_GH }} \
2725
./bundler
2826
2927
- name: Build oba image
3028
run: |
3129
docker buildx build \
3230
--load \
3331
-t oba-image:latest \
34-
--build-arg PAT_USERNAME_FOR_GH=${{ secrets.PAT_USERNAME_FOR_GH }} \
35-
--build-arg PAT_TOKEN_FOR_GH=${{ secrets.PAT_TOKEN_FOR_GH }} \
3632
./oba
3733
3834
services:
@@ -44,14 +40,10 @@ jobs:
4440

4541
- name: Build bundle
4642
run: |
47-
PAT_USERNAME_FOR_GH=${{ secrets.PAT_USERNAME_FOR_GH }} \
48-
PAT_TOKEN_FOR_GH=${{ secrets.PAT_TOKEN_FOR_GH }} \
4943
docker compose up oba_bundler
5044
5145
- name: Docker Compose up
5246
run: |
53-
PAT_USERNAME_FOR_GH=${{ secrets.PAT_USERNAME_FOR_GH }} \
54-
PAT_TOKEN_FOR_GH=${{ secrets.PAT_TOKEN_FOR_GH }} \
5547
docker compose up -d
5648
5749
- name: Wait for services to be up
@@ -79,8 +71,6 @@ jobs:
7971

8072
- name: Docker Compose up
8173
run: |
82-
PAT_USERNAME_FOR_GH=${{ secrets.PAT_USERNAME_FOR_GH }} \
83-
PAT_TOKEN_FOR_GH=${{ secrets.PAT_TOKEN_FOR_GH }} \
8474
docker compose -f docker-compose.standalone.yml up -d
8575
8676
- name: Wait for services to be up

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,15 @@ To build bundles and run the webapp server with your own GTFS feed, use the [Doc
2929
The app server and bundle builder use Maven artifacts from GitHub's Maven package registry, which unfortunately requires authentication. This is provided in the form of a pair of environment variables that must be supplied when building the app server image:
3030

3131
```bash
32-
PAT_USERNAME_FOR_GH=GITHUB_USERNAME \
33-
PAT_TOKEN_FOR_GH=GITHUB_PERSONAL_ACCESS_TOKEN \
3432
docker compose build oba_app
3533
```
3634

37-
You can get a classic PAT here: https://github.com/settings/tokens.
38-
3935
### Building bundles
4036

4137
To build a bundle, use the `oba_bundler` service:
4238

4339
```bash
4440
GTFS_URL=https://www.soundtransit.org/GTFS-rail/40_gtfs.zip \
45-
PAT_USERNAME_FOR_GH=GITHUB_USERNAME \
46-
PAT_TOKEN_FOR_GH=GITHUB_PERSONAL_ACCESS_TOKEN \
4741
docker compose up oba_bundler
4842
```
4943

bundler/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ FROM tomcat:8.5.100-jdk11-temurin AS builder
77
ARG OBA_VERSION=2.5.13-otsf
88
ENV OBA_VERSION=${OBA_VERSION}
99

10-
ARG PAT_USERNAME_FOR_GH
11-
ARG PAT_TOKEN_FOR_GH
12-
1310
RUN apt-get update && apt-get install -y maven
1411

1512
# Start configuring OBA

bundler/settings.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,7 @@
1515
<id>central</id>
1616
<url>https://repo1.maven.org/maven2</url>
1717
</repository>
18-
<repository>
19-
<id>github</id>
20-
<url>https://maven.pkg.github.com/onebusaway/onebusaway-application-modules</url>
21-
<snapshots>
22-
<enabled>true</enabled>
23-
</snapshots>
24-
</repository>
2518
</repositories>
2619
</profile>
2720
</profiles>
28-
29-
<servers>
30-
<server>
31-
<id>github</id>
32-
<username>${PAT_USERNAME_FOR_GH}</username>
33-
<password>${PAT_TOKEN_FOR_GH}</password>
34-
</server>
35-
</servers>
3621
</settings>

docker-compose.prod.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ services:
44
oba_bundler:
55
build:
66
context: ./bundler
7-
args:
8-
- PAT_USERNAME_FOR_GH=${PAT_USERNAME_FOR_GH}
9-
- PAT_TOKEN_FOR_GH=${PAT_TOKEN_FOR_GH}
107
volumes:
118
- ./bundle:/bundle
129
environment:
@@ -35,9 +32,6 @@ services:
3532
- oba_database
3633
build:
3734
context: ./oba
38-
args:
39-
- PAT_USERNAME_FOR_GH=${PAT_USERNAME_FOR_GH}
40-
- PAT_TOKEN_FOR_GH=${PAT_TOKEN_FOR_GH}
4135
environment:
4236
- JDBC_URL=jdbc:mysql://oba_database:3306/oba_database
4337
- JDBC_DRIVER=com.mysql.cj.jdbc.Driver

docker-compose.standalone.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ services:
2121
- oba_database
2222
build:
2323
context: ./oba
24-
args:
25-
- PAT_USERNAME_FOR_GH=${PAT_USERNAME_FOR_GH}
26-
- PAT_TOKEN_FOR_GH=${PAT_TOKEN_FOR_GH}
2724
environment:
2825
- JDBC_URL=jdbc:mysql://oba_database:3306/oba_database
2926
- JDBC_DRIVER=com.mysql.cj.jdbc.Driver

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ services:
22
oba_bundler:
33
build:
44
context: ./bundler
5-
args:
6-
- PAT_USERNAME_FOR_GH=${PAT_USERNAME_FOR_GH}
7-
- PAT_TOKEN_FOR_GH=${PAT_TOKEN_FOR_GH}
85
volumes:
96
- ./bundle:/bundle
107
environment:
@@ -48,9 +45,6 @@ services:
4845
# - oba_database_pg
4946
build:
5047
context: ./oba
51-
args:
52-
- PAT_USERNAME_FOR_GH=${PAT_USERNAME_FOR_GH}
53-
- PAT_TOKEN_FOR_GH=${PAT_TOKEN_FOR_GH}
5448
environment:
5549
- JDBC_URL=jdbc:mysql://oba_database:3306/oba_database
5650
- JDBC_DRIVER=com.mysql.cj.jdbc.Driver

oba/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ ENV MYSQL_CONNECTOR_VERSION=${MYSQL_CONNECTOR_VERSION}
1313
ARG POSTGRESQL_CONNECTOR_VERSION=42.7.4
1414
ENV POSTGRESQL_CONNECTOR_VERSION=${POSTGRESQL_CONNECTOR_VERSION}
1515

16-
ARG PAT_USERNAME_FOR_GH
17-
ARG PAT_TOKEN_FOR_GH
18-
1916
RUN apt-get update && \
2017
apt-get install -y maven golang
2118

oba/config/settings.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,7 @@
1515
<id>central</id>
1616
<url>https://repo1.maven.org/maven2</url>
1717
</repository>
18-
<repository>
19-
<id>github</id>
20-
<url>https://maven.pkg.github.com/onebusaway/onebusaway-application-modules</url>
21-
<snapshots>
22-
<enabled>true</enabled>
23-
</snapshots>
24-
</repository>
2518
</repositories>
2619
</profile>
2720
</profiles>
28-
29-
<servers>
30-
<server>
31-
<id>github</id>
32-
<username>${PAT_USERNAME_FOR_GH}</username>
33-
<password>${PAT_TOKEN_FOR_GH}</password>
34-
</server>
35-
</servers>
3621
</settings>

0 commit comments

Comments
 (0)