Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Version-control and local development metadata
.git
.github
.idea
.vscode
.codex-task
**/.DS_Store

# Build outputs and dependency caches
**/target
**/node_modules
**/.cache

# Modules not used by the Hubble image build. Keep the Maven module POMs so
# the root reactor can still be parsed, and keep release docs used by hubble-dist.
hugegraph-client-go
hugegraph-spark-connector/**
!hugegraph-spark-connector/pom.xml
hugegraph-tools/**
!hugegraph-tools/pom.xml
hugegraph-dist/**
!hugegraph-dist/pom.xml
!hugegraph-dist/release-docs/
!hugegraph-dist/release-docs/**
5 changes: 3 additions & 2 deletions hugegraph-hubble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
# limitations under the License.
#

FROM maven:3.9.0-eclipse-temurin-11 AS build
FROM --platform=$BUILDPLATFORM maven:3.9.0-eclipse-temurin-11 AS build

ENV NODE_OPTIONS=--dns-result-order=ipv4first

ARG MAVEN_ARGS

COPY . /pkg
WORKDIR /pkg

RUN set -x \
Expand All @@ -30,6 +29,8 @@ RUN set -x \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

COPY . /pkg

RUN set -x \
&& mvn install $MAVEN_ARGS -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp \
&& cd /pkg/hugegraph-hubble/ \
Expand Down
Loading