diff --git a/.github/workflows/build-graph-cache-builder.yml b/.github/workflows/build-graph-cache-builder.yml deleted file mode 100644 index 3ecf5b6c755..00000000000 --- a/.github/workflows/build-graph-cache-builder.yml +++ /dev/null @@ -1,57 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Create and publish a graph-cache-builder image - -on: - push: - branches: ['master'] - tags: ['v*'] - pull_request: - branches: ['master'] -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }}-graph-cache-builder - -jobs: - build-and-push-image: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Build and push Docker image - uses: docker/build-push-action@v4 - with: - context: . - platforms: linux/amd64,linux/arm64 - provenance: false - file: ./build-graph-cache.dockerfile - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/build-graph-cache.dockerfile b/build-graph-cache.dockerfile deleted file mode 100644 index c5eddc28b79..00000000000 --- a/build-graph-cache.dockerfile +++ /dev/null @@ -1,31 +0,0 @@ -FROM maven:3.9.4-eclipse-temurin-17-focal as build - -RUN apt-get update && \ - apt-get install -y wget git tar -WORKDIR /graphhopper -COPY . . -RUN mvn clean install -DskipTests - -FROM eclipse-temurin:17-jre-jammy - -RUN apt-get update && \ - apt-get install -y awscli pigz tar && \ - mkdir -p /data - -WORKDIR /graphhopper -COPY --from=build /graphhopper/web/target/graphhopper*.jar ./ -RUN chmod +x *.jar - -RUN mkdir -p /bay-area -COPY ./bay-area/* ./bay-area/ - -COPY ./build-graph-cache.sh . -RUN chmod +x ./build-graph-cache.sh - -VOLUME [ "/data" ] - -EXPOSE 8989 - -HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:8989/health || exit 1 - -ENTRYPOINT [ "./build-graph-cache.sh" ]