Git Product home page Git Product logo

Comments (9)

SteveDinn avatar SteveDinn commented on July 23, 2024 2

It's totally possible, you can build an ARM/ARM64 container yourself, as long as you have docker.

Run the following commands to build your own image on whatever architecture you're on:

    git clone https://github.com/tamland/airsonic-frontend.git
    cd airsonic-frontend
    docker run --rm -it -v $(pwd):/source node /bin/bash

Then, inside the node container:

     cd /source
     yarn install
     yarn build
     exit

Now that we have the app built, we can build the container:

    docker build -t tamland/airsonic-frontend -f ./docker/Dockerfile --no-cache .

Then to run a container based on that just-built image:

    docker run -p [YOUR-LOCAL-PORT]:80 tamland/airsonic-frontend

from airsonic-refix.

 avatar commented on July 23, 2024 1

With your instructions built fine for ARM64 - thank you!

from airsonic-refix.

 avatar commented on July 23, 2024

I'm a bit of a noob with this - is there a way to run a docker container that I can build in so that i don't mess up my server (Odroid)? The server is live and would rather load the build tools in a container so i can dump everything clean if I mess up.

from airsonic-refix.

SteveDinn avatar SteveDinn commented on July 23, 2024

That is exactly what I have given you in the comment above. As long as the building container exports a volume where the source is, you could also do the "git clone" inside the node container, as long as that image has git.

from airsonic-refix.

SteveDinn avatar SteveDinn commented on July 23, 2024

I suppose you could also download the zip file:

https://github.com/tamland/airsonic-frontend/archive/master.zip

And just unzip that to the "source" folder as well.

from airsonic-refix.

 avatar commented on July 23, 2024

Ah - i kind of see now, it's slowly sinking in - thank you! I will give this a try. Thank you so much for your help.

from airsonic-refix.

tamland avatar tamland commented on July 23, 2024

Happy to include this in the CI build if it's possible 🤷‍♂️

from airsonic-refix.

SteveDinn avatar SteveDinn commented on July 23, 2024

I'm not sure how this works if you are trying to cross-compile for a different architecture. I performed those steps on an ARM64 machine (an RPi 4) to get an ARM64 image

from airsonic-refix.

sabinM1 avatar sabinM1 commented on July 23, 2024

For people trying to run this now, a package, eslint-import-resolver-webpack doesn't support node 17, getting an incompatible module error when doing yarn install:

error [email protected]: The engine "node" is incompatible with this module. Expected version "^16 || ^15 || ^14 || ^13 || ^12 || ^11 || ^10 || ^9 || ^8 || ^7 || ^6". Got "17.0.1"
error Found incompatible module.

To get it working, just downgrade node to 16: docker run --rm -it -v $(pwd):/source node:16-bullseye /bin/bash instead of docker run --rm -it -v $(pwd):/source node /bin/bash from SteveDinn's comment. The rest of the commands are working as expected.

from airsonic-refix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.