Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 136

Developing of my app: container technology as a development technology itself [closed]

$
0
0

Disclaimer!

I know this forum is for DevOS and my question is not about deployment, but it's about development.

Background

I was using a laptop with openSUSE Leap 15.1 to develop a Qt app. I upgraded to openSUSE Tumbleweed. Now I realize that library versions which my app is dependent upon are not available for Tumbleweed. Now I have these options:

  1. Reinstall openSUSE Leap 15.1 (or maybe 15.2?)
  2. Set up a development environment with some Docker images
  3. Set up a development environment with a virtual machine
  4. Unavailable dependencies: grab their binary packages directly and install them manually on openSUSE Tumbleweed
  5. ...?

Question

About 2nd option i.e. Docker.

It's known how to use Docker to deploy the app. However, I'm not quite sure how to use it for app development.

Plan

Does this plan make sense? Is something missing? Just asking here before spending time to try it out:

  1. Make use of docker-compose and Dockerfile suggested
  2. Create a docker-compose.yml file defining custom bindmount volumes to be able to share data between container and the host
  3. Create a Dockerfile starting with FROM opensuse/leap:15.1
  4. Install all the dependency packages inside Dockerfile with zypper --root /usr/local/
  5. Needed container data would be inside /usr/local/lib64/, /usr/local/lib/ and /usr/local/include/
  6. Share needed container data with the host by copying data to custom bindmount volumes defined inside docker-compose.yml file
  7. Add bindmount volumes to Qt Creator library path and include path
  8. Use Qt Creator to debug and develop the source code on the host machine

Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>