mentat-is / gulpui-web

web UI for Gulp!
https://gulp.sh
Other
3 stars 0 forks source link

proper deployment (fix Dockerfile and add github workflow) #29

Closed valerino closed 2 weeks ago

valerino commented 2 weeks ago

0 building with "default" instance using docker driver

1 [internal] load build definition from Dockerfile

1 transferring dockerfile: 138B done

1 DONE 0.0s

2 [internal] load metadata for docker.io/library/node:20-alpine

2 DONE 2.4s

3 [internal] load .dockerignore

3 transferring context: 2B done

3 DONE 0.0s

4 [internal] load build context

4 DONE 0.0s

5 [1/5] FROM docker.io/library/node:20-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03

5 resolve docker.io/library/node:20-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 0.0s done

5 sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 7.67kB / 7.67kB done

5 sha256:558a6416c5e0da2cb0f19bbc766f0a76825a7e76484bc211af0bb1cedbb7ca1e 1.72kB / 1.72kB done

5 sha256:45a59611ca84e7fa7e39413f7a657afd43e2b71b8d6cb3cb722d97ffc842decb 6.36kB / 6.36kB done

5 CANCELED

4 [internal] load build context

4 transferring context: 2B done

4 DONE 0.1s

6 [2/5] COPY --chown=node:node ./web ./web

6 ERROR: failed to calculate checksum of ref 534a9842-ee05-4f81-a2f1-6e2f80afb67d::bzu28gx0eg0obl68qmchfnk1k: "/web": not found


[2/5] COPY --chown=node:node ./web ./web:

Dockerfile:3

1 | FROM node:20-alpine 2 |
3 | >>> COPY --chown=node:node ./web ./web 4 |
5 | WORKDIR /web

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 534a9842-ee05-4f81-a2f1-6e2f80afb67d::bzu28gx0eg0obl68qmchfnk1k: "/web": not found


- github workflow to build image via action
- would be nice to include ui image in gulp docker-compose in the end.
Mireg-V commented 2 weeks ago

Dockerfile fixed

valerino commented 2 weeks ago

check https://github.com/mentat-is/gulp/commit/817ee3509a3b23855731c80623cfdd122658d86b

make ui local docker image, on gulp's repo start the compose with

GULP_CONFIG_PATH=./gulp_cfg.json ./run_gulp.sh 
valerino commented 2 weeks ago

ok, some more context: seems related to #27 and probably #28: putting some data in, the gui is working.