Comments (7)
@clintonpower Could you try again, I forgot to use the appropriate S6 according to the arch (see: 13c0fcf)
from node-hp-scan-to.
@manuc66 it works like a charm now, thank you so much, I appreciate your work!
from node-hp-scan-to.
Hi @X1pheR
Maybe you can try:
FROM arm64v8/node:alpine as build
WORKDIR /app
ADD . .
RUN yarn install -d \
&& yarn build \
&& rm dist/*.d.ts dist/*.js.map
FROM node:alpine as app
ENV NODE_ENV production
ADD root/ /
# add S6 Overlay, install shadow (for groupmod and usermod) and tzdata (for TZ env variable)
ADD https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-armhf.tar.gz /tmp/
RUN tar xzf /tmp/s6-overlay-armhf.tar.gz -C / \
&& apk add --no-cache shadow tzdata
# add builded app
WORKDIR /app
COPY --from=build /app/dist/ /app/package.json ./
RUN yarn install -d \
&& yarn cache clean --force
VOLUME ["/scan"]
ENTRYPOINT ["/init"]
CMD ["/app.sh"]
from node-hp-scan-to.
@manuc66: There are ways to build multi-arch images for docker, so we could at least provide one for x86_64 hardware and one for arm64 hardware like a raspberry pi 4.
I own a raspberry pi 4 (running octoprint for 3d printing) and i'm thinking of converting it to docker so i can run additional services on it. That's probably happening in the next few months, then i could create a multi-arch container and test it on a raspberry pi.
Docker's buildx system described here seems official and easy to use, so i could write all the scripts necessary for it. I'm not completely sure but i think currently you configured a build job on Docker Hub to build the image. According to the guide it would then use a github action instead, so you would just have to disable the current build job and add a Docker Hub access token to the repository in the secrets section.
What do you think about that?
from node-hp-scan-to.
@charlie89 Good proposal to have multi-arch docker images
Today image are build with : https://github.com/manuc66/node-hp-scan-to/blob/master/.travis.yml#L17 but this can be changed of course
from node-hp-scan-to.
@X1pheR @charlie89 @clintonpower
Could you test this : https://hub.docker.com/layers/node-hp-scan-to/manuc66/node-hp-scan-to/feature-multiarch-docker/images/sha256-0e73e2283569fc098b0a9ebafdd923d777cc43a7b7cb444982c21bfdcf06d667?context=repo
from node-hp-scan-to.
@manuc66 Thank you so much for the fast update! I am receiving the following error on RPi 3B+
node-hp-scan-to | /command/s6-overlay-suexec: line 1: syntax error: unexpected ")"
Am I missing something?
from node-hp-scan-to.
Related Issues (20)
- Support HP OfficeJet Pro 8270 HOT 3
- Filename of scan looks like S31KEB~7.PDF HOT 3
- Recovery after printer drops offline HOT 3
- Deskjet 3050 All-in-One J610a only jpg HOT 9
- Docker build is failing HOT 1
- Docker container shutting down when the printer is offline HOT 7
- Error: Non-whitespace before first tag. HOT 14
- Autoscan HOT 8
- Running node-hp-scan-to in kubernetes cluster HOT 5
- Scanned files in docker are not moved from tmp to /scan HOT 3
- Scanned files not being moved to target directory (npx) HOT 4
- The project description HOT 1
- Multiple Scanners/Printers HOT 2
- HP 9010 - scan using ADF won't start - 409 Conflict HOT 1
- Upload directly topaperless-ngx HOT 3
- Add Support for Photosmart C410b HOT 1
- Service Crashes on Multiple Page Scan HOT 1
- Axios timeout errors HOT 1
- HP ENVY Photo 6232 - PDF multiple pages ? HOT 6
- Process for adding supported printers HOT 5
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 node-hp-scan-to.