mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-13 18:10:49 +02:00
fix building
This commit is contained in:
@@ -36,6 +36,21 @@ jobs:
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24'
|
||||
|
||||
- name: Build SeaweedFS binary
|
||||
run: |
|
||||
echo "Building SeaweedFS binary..."
|
||||
cd weed
|
||||
go build -o ../docker/weed
|
||||
cd ../docker
|
||||
# Dockerfile.local expects these files in the build context
|
||||
ls -la weed filer.toml entrypoint.sh
|
||||
echo "✓ SeaweedFS binary built and ready for Docker build"
|
||||
|
||||
- name: Build SeaweedFS Java dependencies
|
||||
run: |
|
||||
echo "Building Java client (required by HDFS clients)..."
|
||||
@@ -157,6 +172,37 @@ jobs:
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24'
|
||||
|
||||
- name: Build SeaweedFS binary
|
||||
run: |
|
||||
echo "Building SeaweedFS binary..."
|
||||
cd weed
|
||||
go build -o ../docker/weed
|
||||
cd ../docker
|
||||
ls -la weed filer.toml entrypoint.sh
|
||||
echo "✓ SeaweedFS binary built and ready for Docker build"
|
||||
|
||||
- name: Build SeaweedFS Java dependencies
|
||||
run: |
|
||||
echo "Building Java client..."
|
||||
cd other/java/client
|
||||
mvn clean install -DskipTests -Dgpg.skip=true
|
||||
cd ../../..
|
||||
|
||||
echo "Building HDFS2 client..."
|
||||
cd other/java/hdfs2
|
||||
mvn clean install -DskipTests -Dgpg.skip=true
|
||||
cd ../../..
|
||||
|
||||
echo "Building HDFS3 client..."
|
||||
cd other/java/hdfs3
|
||||
mvn clean install -DskipTests -Dgpg.skip=true
|
||||
echo "✓ All Java dependencies built"
|
||||
|
||||
- name: Cache Apache Spark
|
||||
id: cache-spark
|
||||
uses: actions/cache@v3
|
||||
|
||||
@@ -2,7 +2,10 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
seaweedfs-master:
|
||||
image: seaweedfs:test-grpc-v1.77.0
|
||||
build:
|
||||
context: ../../../docker
|
||||
dockerfile: Dockerfile.local
|
||||
image: seaweedfs:local
|
||||
container_name: seaweedfs-spark-master
|
||||
ports:
|
||||
- "9333:9333"
|
||||
@@ -12,7 +15,10 @@ services:
|
||||
- seaweedfs-spark
|
||||
|
||||
seaweedfs-volume:
|
||||
image: seaweedfs:test-grpc-v1.77.0
|
||||
build:
|
||||
context: ../../../docker
|
||||
dockerfile: Dockerfile.local
|
||||
image: seaweedfs:local
|
||||
container_name: seaweedfs-spark-volume
|
||||
ports:
|
||||
- "8080:8080"
|
||||
@@ -24,7 +30,10 @@ services:
|
||||
- seaweedfs-spark
|
||||
|
||||
seaweedfs-filer:
|
||||
image: seaweedfs:test-grpc-v1.77.0
|
||||
build:
|
||||
context: ../../../docker
|
||||
dockerfile: Dockerfile.local
|
||||
image: seaweedfs:local
|
||||
container_name: seaweedfs-spark-filer
|
||||
ports:
|
||||
- "8888:8888"
|
||||
@@ -35,12 +44,6 @@ services:
|
||||
- seaweedfs-volume
|
||||
networks:
|
||||
- seaweedfs-spark
|
||||
environment:
|
||||
- GRPC_GO_LOG_VERBOSITY_LEVEL=99
|
||||
- GRPC_GO_LOG_SEVERITY_LEVEL=info
|
||||
- GLOG_v=4
|
||||
- GLOG_logtostderr=true
|
||||
- GODEBUG=http2debug=2
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8888/"]
|
||||
interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user