Comments (6)
Hi, thanks for reporting this, you can specify a custom image instead of using arch/distro like this:
arch: none
distro: none
base_image: arm32v7/alpine:3.18
This should work.
More images here: https://hub.docker.com/r/arm32v7/alpine/
from run-on-arch-action.
@uraimo thks! I figured this exactly right now o/,
But didn't notice that the architecture should be used, going to try it.
I was unable do build it locally because it can't find the install script.
cd Dockerfiles
docker build -t test_image -f Dockerfile.armv7.alpine_latest .
...
ERROR [2/3] COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
Then I found the src/run-on-arch things with this code, that seems to do some magics, ( And maybe create the "*-install.sh" ? )
// If a custom base image is given, then dynamically create its Dockerfile.
if (base_image) {
let lines = [];
lines.push(`FROM ${base_image}`);
lines.push("COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh");
lines.push("RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh");
console.log(`Writing custom Dockerfile to: ${dockerFile} ...`);
fs.writeFileSync(dockerFile, lines.join("\n"));
}
The action seems much more versatile if works like this, maybe we can automate the architecture name on base_image?
from run-on-arch-action.
Using:
arch: none
distro: none
base_image: arm32v7/alpine:3.18
Still have issue,
But now is the dockerfile:
#6 [1/3] FROM docker.io/arm32v7/alpine:3.16@sha256:73ab068ac4acca454294ecb8ec50f2331953a546a60ff241b0dc5f2f42de0d25
#6 resolve docker.io/arm32v7/alpine:3.16@sha256:73ab0[68](https://github.com/RaulTrombin/navigator-lib/actions/runs/8110776985/job/22168776329#step:6:69)ac4acca454294ecb8ec50f2331953a546a60ff241b0dc5f2f42de0d25 done
#6 sha256:73ab068ac4acca454294ecb8ec50f2331953a546a60ff241b0dc5f2f42de0d25 528B / 528B done
#6 sha256:8282ae194fdb8233c361bceb846f5bf7c65e19d1ffae178af604e548a8bffeff 1.49kB / 1.49kB done
#6 sha256:3dae0518e749f9d581ecf3cda7ea260e4a87c1413599b7248a60554e9ae3a3ac 0B / 2.42MB 0.1s
#6 extracting sha256:3dae0518e749f9d581ecf3cda7ea260e4a87c1413599b[72](https://github.com/RaulTrombin/navigator-lib/actions/runs/8110776985/job/22168776329#step:6:73)48a60554e9ae3a3ac
#6 sha256:3dae0518e749f9d581ecf3cda7ea260e4a87c1413599b7248a60554e9ae3a3ac 2.42MB / 2.42MB 0.4s done
#6 extracting sha256:3dae0518e[74](https://github.com/RaulTrombin/navigator-lib/actions/runs/8110776985/job/22168776329#step:6:75)9f9d581ecf3cda7ea260e4a87c1413599b7248a60554e9ae3a3ac 0.0s done
#6 DONE 0.4s
#9 [2/3] COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
#9 DONE 0.0s
#10 [3/3] RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
#10 0.1[81](https://github.com/RaulTrombin/navigator-lib/actions/runs/8110776985/job/22168776329#step:6:82) /bin/sh: /root/run-on-arch-install.sh: not found
#10 ERROR: process "/bin/sh -c chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh" did not complete successfully: exit code: 127
------
> importing cache manifest from ghcr.io/raultrombin/navigator-lib/run-on-arch-raultrombin-navigator-lib-test-all-targets-none-none:
------
------
> [3/3] RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh:
/root/run-on-arch-install.sh: not found
------
Dockerfile.none.none:3
--------------------
1 | FROM arm32v7/alpine:3.16
2 | COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
3 | >>> RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
--------------------
ERROR: failed to solve: process "/bin/sh -c chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh" did not complete successfully: exit code: 127
Error: The process '/home/runner/work/_actions/uraimo/run-on-arch-action/v2.6.0/src/run-on-arch.sh' failed with exit code 1
from run-on-arch-action.
@uraimo creating a fork of run-on-arch-action and rewriting the alpine version from latest to 3.18 solved my issue for now.
from run-on-arch-action.
run-on-arch-install.sh
from run-on-arch-action.
@uraimo sorry, this is not a action related issue, but alpine unspected behavior.
the install failled using the pip packages... and somehow it break the action.
new version fixed
install: |
apk add py3-pip
run: |
python3 -m venv ./venv
. ./venv/bin/activate
pip3 install -U pip
pip3 install package_wheel --no-index --find-links dist/ --force-reinstall
Suggestions: maybe we could fail if the install
section fail and display it(?)
from run-on-arch-action.
Related Issues (20)
- nodejs cef build is failed HOT 1
- /root/run-on-arch-install.sh: not found HOT 5
- Multiple steps in a job HOT 7
- Support for actions steps instead of just shell commands HOT 1
- Error while setting up Go
- Failure to find and start dockers HOT 1
- The requested image's platform does not match the detected host platform HOT 1
- Need pinned Alpine Linux versions, e.g., v3.17 HOT 2
- not enough free disk space? HOT 4
- githubToken is required HOT 1
- Tag error for version 2.5.1 =>v.2.5.1 HOT 1
- Container always rebuilt HOT 2
- How can I copy files to host?
- Mounted Volume only gets updated after the `run` step completed HOT 1
- Using distrobuilder in ubuntu_latest on aarch64 will give an error( Failed to unshare namespaces: Operation not permitted ) HOT 2
- ::engroup::missing?
- Add support for ubuntu/i306
- Install Commands without GitHub Token not Executed HOT 4
- Bun cannot execute: required file not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-on-arch-action.