Skip to content

Commit 1ed040e

Browse files
authored
Merge pull request #4345 from hove-io/revert-4344-generate_tyr_worker
Revert "Generate tyr worker"
2 parents adc663e + e992828 commit 1ed040e

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

.github/workflows/dockers_builder.yml

+16-18
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ env:
1515
SBX_ECR_REGISTRY_BACKEND: "110444322584.dkr.ecr.eu-west-1.amazonaws.com"
1616
SBX_ECR_REGISTRY_FRONT: "051314639660.dkr.ecr.eu-west-1.amazonaws.com"
1717
PRD_ECR_REGISTRY: "162230498103.dkr.ecr.eu-west-1.amazonaws.com"
18-
SBX_ECR_MIMIR_REGISTRY: "026897623940.dkr.ecr.eu-west-1.amazonaws.com"
19-
2018

2119
jobs:
2220

@@ -164,6 +162,15 @@ jobs:
164162
target: 'cosmogony2cities_.deb'
165163
token: ${{ steps.ci-core-app-token.outputs.token }}
166164

165+
- name: Download mimirsbrunn package
166+
uses: dsaltares/fetch-gh-release-asset@master
167+
with:
168+
repo: 'hove-io/mimirsbrunn'
169+
version: 'tags/v3.1.0'
170+
file: 'mimirsbrunn7_jessie-3.1.0.deb'
171+
target: 'mimirsbrunn7_jessie-.deb'
172+
token: ${{ steps.ci-core-app-token.outputs.token }}
173+
167174
- name: Download mimir-config package
168175
uses: dsaltares/fetch-gh-release-asset@master
169176
with:
@@ -180,22 +187,7 @@ jobs:
180187
with:
181188
# 162230498103 : shared
182189
# 110444322584 : kraken sbx
183-
registries: "162230498103,110444322584,051314639660,026897623940"
184-
185-
- name: Get and tag mimir dev image
186-
if: github.ref == 'refs/heads/dev'
187-
run: |
188-
image=${SBX_ECR_MIMIR_REGISTRY}/mimirsbrunn:latest
189-
docker pull ${image}
190-
docker tag ${image} mimirsbrunn:local
191-
192-
- name: Get and tag mimir release image
193-
if: startsWith(github.ref, 'refs/tags/')
194-
run: |
195-
MIMIR_TAG="v3.1.0"
196-
image=${PRD_ECR_REGISTRY}/navitia-bragi-mimirsbrunn:${MIMIR_TAG}
197-
docker pull ${image}
198-
docker tag ${image} mimirsbrunn:local
190+
registries: "162230498103,110444322584,051314639660"
199191

200192
- name: Create master docker
201193
run: |
@@ -240,6 +232,9 @@ jobs:
240232
docker tag navitia/tyr-worker ${tyr_worker_tag}
241233
docker push ${tyr_worker_tag}
242234
235+
236+
237+
243238
- name: failure notification
244239
if: failure()
245240
run: |
@@ -335,6 +330,8 @@ jobs:
335330
rm -rf ./*
336331
rm -rf ./.??*
337332
333+
334+
338335
publish_aws:
339336
runs-on: [self-hosted, corefront, sandbox]
340337
name: Aws Dispatch (Dev)
@@ -373,6 +370,7 @@ jobs:
373370
sudo apt update && sudo apt install -y httpie
374371
echo '{"text":":warning: Github Actions: dockers_builder the job publish_aws failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
375372
373+
376374
run_artemis:
377375
runs-on: [self-hosted, corefront, sandbox]
378376
needs: [publish_aws]

docker/debian8/Dockerfile-tyr-worker

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
FROM mimirsbrunn:local AS mimir_bins
2-
31
FROM navitia/master
42

53
# Install some binaries from tartare-tools
@@ -19,7 +17,7 @@ RUN cd tartare-tools \
1917
&& cd .. \
2018
&& rm -rf tartare-tools
2119

22-
COPY navitia-common_*deb navitia-tyr_*.deb navitia-ed_*.deb navitia-cities_*.deb cosmogony2cities_*.deb mimirsbrunn-config-*.deb ./
20+
COPY navitia-common_*deb navitia-tyr_*.deb navitia-ed_*.deb navitia-cities_*.deb mimirsbrunn7_jessie-*.deb cosmogony2cities_*.deb mimirsbrunn-config-*.deb ./
2321

2422
# install navitia-common package
2523
RUN dpkg -i ./navitia-common_*.deb || exit 0
@@ -33,8 +31,10 @@ RUN dpkg -i ./navitia-ed_*.deb || exit 0
3331
# install navitia-cities package
3432
RUN dpkg -i ./navitia-cities_*.deb || exit 0
3533

36-
# install cosmogony2cities package
37-
RUN dpkg -i ./cosmogony2cities*.deb \
34+
# install navitia-mimirsbrunn package
35+
RUN dpkg -i ./mimirsbrunn7_jessie-*.deb \
36+
# install cosmogony2cities package
37+
./cosmogony2cities*.deb \
3838
# install conf mimir package
3939
./mimirsbrunn-config-*.deb
4040

@@ -45,11 +45,9 @@ RUN rm navitia-common_*deb \
4545
navitia-cities_*.deb \
4646
navitia-ed_*.deb \
4747
mimirsbrunn-config-*.deb \
48+
mimirsbrunn7_jessie-*.deb \
4849
cosmogony2cities_*.deb
4950

50-
# Copy: osm2mimir7 && cosmogony2mimir7 && bano2mimir7 && openaddresses2mimir7 && ntfs2mimir7 && poi2mimir7 && ctlmimir7
51-
COPY --from=mimir_bins /usr/bin/*mimir7 /usr/bin/
52-
5351
# install tyr requirements
5452
RUN pip install --no-cache-dir -r /usr/share/tyr/requirements.txt
5553

0 commit comments

Comments
 (0)