fix: update Dockerfile with python and .gyp to support install and run of Glee project in container
Add python and .gyp to support install and run of Glee project in container
In follow up to https://github.com/asyncapi/cli/issues/1207 bug
Glee install fails over python. I have followed best practice for Node images to patch Dockerfile with apk for python, .gyp and related stuff
Related issue(s) Fixes #1207
I have developed an alternative solution to establish a container with running Glee server. The change to Dockerfile has been undone. Instead I have added a file composeGlee.yaml for invocation with 'docker compose -f composeGlee.yaml up'
Docker Compose
- takes current image of asyncapi/cli from DockerHub,
- adds pyhton and .gyp,
- creates and installs new glee project
- attaches to directories on local system (here you can update or prepare Glee files. Local contents override what comes from image )
- npm run dev to deploy a server conform the Glee files
Known deficiency: permissions on new glee project are "root" write only. I have solved with chown on my own machine but this can be done more nicely
In consultation with Lukasz
- Base image upgraded to node:20-alpine from node:16-alpine (in Dockerfile)
- Install of python and .gyp added to build of asyncapi/cli image (in Dockerfile)
- add comment with manual build instruction for local image (in Dockerfile)
- add comment to use docker compose up for testing of local image (in Dockerfile)
- add compose.yaml to launch running container with studio from local image for testing
- Remove compose file to launch Glee server as too specific a use case
Running container supports studio and start of glee server. This was tested with docker exec -it
Note: .github/workflows folder contains a flow to publish docker image to Docker hub on new release. Rather confusing this workflow speaks about an Ubuntu image. I have no experience in workflows so I cannot track the error Note 2: asyncapi start studio requires presence of an asyncapi.yaml file (otherwise start breaks on error). But funny enough the file contents are not displayed in running studio, and the file can have any content. Life would be much easier if check on syncapi.yaml is removed from studio code!!!
Hi Lukasz, all is in place now: automated test on Docker image, python and .gyp in Docker image, and node:20
For your approval
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
/rtm
:tada: This PR is included in version 1.8.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: