Skip to content

separate build and publish workflows#166

Merged
dennisvang merged 5 commits intodevelopfrom
issue162-workflows
Mar 3, 2025
Merged

separate build and publish workflows#166
dennisvang merged 5 commits intodevelopfrom
issue162-workflows

Conversation

@dennisvang
Copy link
Copy Markdown
Contributor

- clean up Dockerfile and .dockerignore accordingly
- move build_info.sh call from github action into build stage
- convert build_info.sh from bash to sh (alpine has no bash)
using reusable workflows from FAIRDataTeam/github-workflows
@dennisvang
Copy link
Copy Markdown
Contributor Author

dennisvang commented Feb 28, 2025

Build succeeds for linux/amd64, but fails for linux/arm64 (gyp error missing python).

Options:

  • limit support to amd64
  • try installing python explicitly (see docker-node docs)

I suppose we don't really need arm64 support, so let's go with the first option.
This depends on FAIRDataTeam/github-workflows#17

EDIT: Actually arm64 support is desirable, otherwise we are limited in the choice of server type. Also, think about developers on mac.

So we've opened an issue to restore support, depending on the upgrade of all node dependencies to the most recent versions: #188

@dennisvang dennisvang marked this pull request as ready for review February 28, 2025 12:37
@dennisvang
Copy link
Copy Markdown
Contributor Author

Hi @MarekSuchanek, I guess this is about ready, what do you think?

A squash merge would be appropriate here.

We can then merge into #140, which introduces some additional simplifications to the Dockerfile.

@dennisvang dennisvang added this to the release v2 milestone Feb 28, 2025
Copy link
Copy Markdown
Contributor

@MarekSuchanek MarekSuchanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍🏻

@dennisvang dennisvang merged commit 57e80f6 into develop Mar 3, 2025
3 checks passed
@dennisvang dennisvang deleted the issue162-workflows branch May 16, 2025 09:35
dennisvang added a commit that referenced this pull request May 16, 2025
* add build stage to Dockerfile

  - clean up Dockerfile and .dockerignore accordingly
  - move build_info.sh call from github action into build stage
  - convert build_info.sh from bash to sh (alpine has no bash)

* separate build and publish workflows

  using reusable workflows from FAIRDataTeam/github-workflows

* explicit stage name in Dockerfile

* limit docker image support to linux/amd64

* add minimal sass dependencies in Dockerfile
dennisvang added a commit that referenced this pull request May 16, 2025
* add build stage to Dockerfile

  - clean up Dockerfile and .dockerignore accordingly
  - move build_info.sh call from github action into build stage
  - convert build_info.sh from bash to sh (alpine has no bash)

* separate build and publish workflows

  using reusable workflows from FAIRDataTeam/github-workflows

* explicit stage name in Dockerfile

* limit docker image support to linux/amd64 (workaround because linux/arm64 fails, due to missing node-gyp support)

* add minimal sass dependencies in Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use multi-stage dockerfile Separate test and deployment workflows, remove nexus deployment.

2 participants