Skip to content

Commit 7b6c2fe

Browse files
authored
Merge pull request #4346 from hove-io/2mimir_add_to_tyr_worker
*2mimir added from docker image
2 parents 1ed040e + 19d28f3 commit 7b6c2fe

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

.github/workflows/dockers_builder.yml

+18-16
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ 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+
1820

1921
jobs:
2022

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

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-
174167
- name: Download mimir-config package
175168
uses: dsaltares/fetch-gh-release-asset@master
176169
with:
@@ -187,7 +180,22 @@ jobs:
187180
with:
188181
# 162230498103 : shared
189182
# 110444322584 : kraken sbx
190-
registries: "162230498103,110444322584,051314639660"
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
191199
192200
- name: Create master docker
193201
run: |
@@ -232,9 +240,6 @@ jobs:
232240
docker tag navitia/tyr-worker ${tyr_worker_tag}
233241
docker push ${tyr_worker_tag}
234242
235-
236-
237-
238243
- name: failure notification
239244
if: failure()
240245
run: |
@@ -330,8 +335,6 @@ jobs:
330335
rm -rf ./*
331336
rm -rf ./.??*
332337
333-
334-
335338
publish_aws:
336339
runs-on: [self-hosted, corefront, sandbox]
337340
name: Aws Dispatch (Dev)
@@ -370,7 +373,6 @@ jobs:
370373
sudo apt update && sudo apt install -y httpie
371374
echo '{"text":":warning: Github Actions: dockers_builder the job publish_aws failed !"}' | http --json POST ${{secrets.SLACK_NAVITIA_TEAM_URL}}
372375
373-
374376
run_artemis:
375377
runs-on: [self-hosted, corefront, sandbox]
376378
needs: [publish_aws]

docker/debian8/Dockerfile-tyr-worker

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

35
# Install some binaries from tartare-tools
@@ -17,7 +19,7 @@ RUN cd tartare-tools \
1719
&& cd .. \
1820
&& rm -rf tartare-tools
1921

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

2224
# install navitia-common package
2325
RUN dpkg -i ./navitia-common_*.deb || exit 0
@@ -31,10 +33,8 @@ RUN dpkg -i ./navitia-ed_*.deb || exit 0
3133
# install navitia-cities package
3234
RUN dpkg -i ./navitia-cities_*.deb || exit 0
3335

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

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

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

0 commit comments

Comments
 (0)