Comments (3)
Subuser is configured to rebuild everything when it builds an image. Otherwise, the images that were built would be out of date. For testing when creating a package, it is therefore better to use a dev subuser.
Run this command in the repository:
subuser dev --update electrum-base
The --update
flag will tell subuser to use the docker image cache while building the image, and therefore, only steps which have changed or which previously failed will be rebuilt.
It is also possible to pass the --use-cache
option to subuser update
in order to get the same effect with non-dev subusers.
As for being able to play with images and test build steps, the best way to do this in my opinion would be to run subuser describe subuser <subuser-name>
and looking at the Docker image Id:
and using docker directly. Another option, if the image doesn't build correctly at all, would be to run a command like this cat ~/.subuser/registry/commit_log | grep -n2 "\-\-\->" | tail -n 15
and look for a line that starts with --->
.
Here is some example output:
662502-Step 2/2 : RUN mkdir -p /subuser ; echo bb11cd5f-b55e-4701-b30f-612b9ecaac70 > /subuser/uuid
662503: ---> Running in b64650ea1b10
662504: ---> 614dd19b49b9
662505-Removing intermediate container b64650ea1b10
I can now issue docker run -it 614dd19b49b9 bash
in order to enter that layer as root.
Hope this helps,
Tim
from subuser.
It probably depends on the fact that I am using the following base image
FROM-SUBUSER-IMAGE libx11@default
which uses apt-get update
and apt-get upgrade
.
from subuser.
Hi @timthelion, thanks for the info, I will look into them.
I also think that this could be useful information to put in the tutorial on packaging.
from subuser.
Related Issues (20)
- Exception when git binary not present
- Half-initialized repo results in "Not a valid object name master" error
- Missing `GitException` handling
- Failing just becasue of git warning may be too restrictive
- Cannot start xpra on Fedora 25
- `subuser repair` returns success to the shell despite failure
- Bug in getGraphicsCardDevices HOT 1
- Invalid path '/root/.subuser': Permission denied HOT 6
- How to make subuser to support "docker-ce"? HOT 5
- wierd issue i cant fix. when i type subuser list available HOT 9
- package add vim tries to install iceweasel, and fails HOT 4
- Issues with opening website subuser.org from IPv6-only environment HOT 1
- HTML5 xpra client support HOT 2
- Cannot build images HOT 4
- Expired SSL certificate on https://subuser.org/ HOT 1
- Question: does subuser support podman? HOT 4
- Comparison to Flatpak HOT 1
- clipboard permission of 'true' or 'false' is not granular enough HOT 3
- Can't get subuser to run Ubuntu 22.04 / KDE neon HOT 1
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 subuser.