kartevonmorgen / openfairdb

Open Fair DB is the CreativCommons Backend of Kartevonmorgen.org
http://www.openfairdb.org
GNU Affero General Public License v3.0
55 stars 18 forks source link

Docker image build is failing #517

Closed snaeil closed 7 months ago

snaeil commented 7 months ago

I was trying follow the deployment guide but I am getting this error every time:

Sending build context to Docker daemon  4.057GB

Step 1/53 : ARG WORKDIR_ROOT=/usr/src
Step 2/53 : ARG PROJECT_NAME=openfairdb
Step 3/53 : ARG BUILD_TARGET=x86_64-unknown-linux-musl
Step 4/53 : ARG BUILD_MODE=release
Step 5/53 : ARG BUILD_BIN=${PROJECT_NAME}
Step 6/53 : FROM clux/muslrust:stable AS build
 ---> 99d411a020d5
Step 7/53 : ARG WORKDIR_ROOT
 ---> Using cache
 ---> 6bbfa38ff949
Step 8/53 : ARG PROJECT_NAME
 ---> Using cache
 ---> b83605b908b2
Step 9/53 : ARG BUILD_TARGET
 ---> Using cache
 ---> 480e566dbf8d
Step 10/53 : ARG BUILD_MODE
 ---> Using cache
 ---> b1c0c8b56fd4
Step 11/53 : ARG BUILD_BIN
 ---> Using cache
 ---> c69bce8db746
Step 12/53 : WORKDIR ${WORKDIR_ROOT}
 ---> Using cache
 ---> f33bad68bac3
Step 13/53 : RUN USER=root     cargo new --bin ${PROJECT_NAME}
 ---> Using cache
 ---> 64b92dfdc7c6
Step 14/53 : WORKDIR ${WORKDIR_ROOT}/${PROJECT_NAME}
 ---> Using cache
 ---> 320df01884b3
Step 15/53 : RUN USER=root cargo new --lib ofdb-application     &&     USER=root cargo new --lib ofdb-boundary     &&     USER=root cargo new --lib ofdb-core     &&     USER=root cargo new --lib ofdb-db-sqlite     &&     USER=root cargo new --lib ofdb-db-tantivy     &&     USER=root cargo new --lib ofdb-entities     &&     USER=root cargo new --lib ofdb-gateways     &&     USER=root cargo new --lib ofdb-webserver
 ---> Using cache
 ---> 6aa8aa0533ac
Step 16/53 : COPY [     "Cargo.toml",     "Cargo.lock",     "./" ]
 ---> Using cache
 ---> b92dd5b05125
Step 17/53 : COPY [     "ofdb-application/Cargo.toml",     "./ofdb-application/" ]
 ---> Using cache
 ---> fdd2fc8de344
Step 18/53 : COPY [     "ofdb-boundary/Cargo.toml",     "./ofdb-boundary/" ]
 ---> Using cache
 ---> c5641de4a0b2
Step 19/53 : COPY [     "ofdb-core/Cargo.toml",     "ofdb-core/benches",     "./ofdb-core/" ]
 ---> Using cache
 ---> bb1164437bc8
Step 20/53 : COPY [     "ofdb-db-sqlite/Cargo.toml",     "./ofdb-db-sqlite/" ]
 ---> Using cache
 ---> 107bcc4648ef
Step 21/53 : COPY [     "ofdb-db-tantivy/Cargo.toml",     "./ofdb-db-tantivy/" ]
 ---> Using cache
 ---> 5de2c5a06b73
Step 22/53 : COPY [     "ofdb-entities/Cargo.toml",     "./ofdb-entities/" ]
 ---> Using cache
 ---> 6db7f0d10dae
Step 23/53 : COPY [     "ofdb-gateways/Cargo.toml",     "./ofdb-gateways/" ]
 ---> Using cache
 ---> 3bd9b6adb87d
Step 24/53 : COPY [     "ofdb-webserver/Cargo.toml",     "./ofdb-webserver/" ]
 ---> Using cache
 ---> b462e2288335
Step 25/53 : RUN cargo build --${BUILD_MODE} --target ${BUILD_TARGET} --workspace     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/${PROJECT_NAME}*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/${PROJECT_NAME}-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_application-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_boundary-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_core-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_db_sqlite-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_db_tantivy-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_entities-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_gateways-*     &&     rm -f ./target/${BUILD_TARGET}/${BUILD_MODE}/deps/ofdb_webserver-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/${PROJECT_NAME}-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-application-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-boundary-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-core-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-db-sqlite-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-db-tantivy-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-entities-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-gateways-*     &&     rm -rf ./target/${BUILD_TARGET}/${BUILD_MODE}/.fingerprint/ofdb-webserver-*
 ---> Running in 12bd776e25e6
error: failed to load manifest for workspace member `/usr/src/openfairdb/ofdb-frontend-api`

Caused by:
  failed to read `/usr/src/openfairdb/ofdb-frontend-api/Cargo.toml`

Caused by:
  No such file or directory (os error 2)


My docker version is 25.0.3, build 4debf411d1.

flosse commented 7 months ago

I haven't used the docker image for years, so it might be outdated :see_no_evil: What OS are you running?

snaeil commented 7 months ago

I am using Manjaro (Arch based). At least it's good to know for me that it is potentially broken in general :-)

uklotzde commented 7 months ago

The Docker build is not tested by CI. It is currently unused and has probably not been updated while the project was evolving.

snaeil commented 7 months ago

I have created PR #520 but am not into the project enough that I could test API routes explicitly. If you want you can have a look and try it.