Git Product home page Git Product logo

Comments (7)

kilchenmann avatar kilchenmann commented on August 20, 2024

Thank you @janCstoffregen for your input. I think, we will integrate Kuirl into the docker-compose file of Knora one day.

from dsp-das.

subotic avatar subotic commented on August 20, 2024

I began working on something, but it is not finished yet: https://github.com/dasch-swiss/knora-docker-app. It will use the new Dockerapp feature.

The idea is to be able to start only the services which are needed for ones work. For example, if someone wants to work on Knora-API, then he would start the whole stack minus the Knora-API. The same if someone wants to work on Kuirl, then he would need the whole stack minus Kuirl.

from dsp-das.

janCstoffregen avatar janCstoffregen commented on August 20, 2024

ok, then it's already on the way, I'm looking forward to it!

The Dockerfile for an angular app is very simple btw, just compile it with ng build and then copy the dist to a proxy - docker - image.
You don't have to build the angular app in the docker image, that causes lot's of extra stress because the yarn / npm packages have different problems on a Dockerfile with a different OS underneath, just build it locally on your macbook, generate the docker image and push it to dockerhub once in a while.
That's my experience at least, please correct me if I'm wrong, I know it would be nicer in an automated way but it does not work for me without extra effort at the moment, so it does not save time in my case in the end.

I don't know the new Dockerapp feature and will check it out, thank you for the hint!

from dsp-das.

subotic avatar subotic commented on August 20, 2024

We build all our Angular apps automatically through docker. You can take a look at https://github.com/dhlab-basel/Kuirl/blob/master/Dockerfile

Every time we set a tag on this repository, Dockerhub starts building the image into this repository: https://cloud.docker.com/u/daschswiss/repository/docker/daschswiss/knora-app-web

from dsp-das.

subotic avatar subotic commented on August 20, 2024

This requires that you can provide the config to your application at runtime and not buildtime. We build the app once and then deploy it in different environments.

from dsp-das.

janCstoffregen avatar janCstoffregen commented on August 20, 2024

I tried the "build once deploy anywhere" way, André told me that you're successfully doing this, I'll have to have a look, when I tried it, I stored the different configurations in the asset folder, sometimes the environment variables were not loaded fast enough, I have to check out your solution!

I only checked out the dhlab docker hub, thank you for pointing this repo out, then it's already available as a docker image as well, that's quite nice.

I'll wait for the dockerapp then, thank you very much, please feel free to close this issue if it is at the wrong repo, I know now where to check the status of this.

from dsp-das.

kilchenmann avatar kilchenmann commented on August 20, 2024

I think we can close this issue

from dsp-das.

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.