Comments (11)
It would be sweet to use some lightweight container that does not need a Docker Hub and all that cloud extra topping. I found mbox that might prove useful.
from node-deb.
Sadly it does not have apt distribution, but it can just be downloaded + built at start of travis build.
from node-deb.
Alright, I tried mbox and it seems sweet. This is what I have so far
https://github.com/heartsucker/node-deb/compare/develop...vidstige:mbox-tests?expand=1
I just copied two test cases and they seem to work fine. When running under mbox, no files will actually be modified on your system, just a sandbox. :-) Also sudo seems to work just fine 👍
Check out my branch and test like this ./mbox ./light-test.sh
My idea is to run things under mbox instead of vagrant, but it was a little bit tangled with the unit tests so I tried it like this first. If you like it you (or me) can make a proper pr out of this.
from node-deb.
And just to connect the dots all the way to travis - When we can run without vagrant and VirtualBox, adding a TravisCI build is easy, I can do most of the work, but you need to enable the build on the official repo (here).
from node-deb.
@vidstige I've enabled TravisCI on this repo. Is there a reason you're choosing mbox
over docker
as per #55?
from node-deb.
That was phrased poorly, and what I meant was "is mbox
being lightweight sufficient reason to choose it over docker
?" I looked into it, and the last commit on mbox
was 3 years ago, and I thought to use docker
because it would allow me to test against various images of Debian and Ubuntu. It's not obvious if mbox
supports this, and I'm inclined to think it does not. Also based on the popularity of docker
, I'd have to reject a PR for mbox
.
from node-deb.
No, only reason was that with mbox you don't really need anything extra, you can just checkout and run test suite. No need to install docker and so on. But I think docker would probably be better yes, but then again it will also be some more work,
from node-deb.
Good thing I just made a comment here before making a PR. 👍
from node-deb.
One more advantage over docker is it's a bit faster, etc. If you're on a slow network for example downloading a docker image on a few gigs or whatever size they are can be a bit slower. mbox
on the other side does not need the network at all, e.g. you can work on the train on cafés, etc.
Perhaps the tests and the container can be separated somehow? Then we could have both. :-)
from node-deb.
The thing with most of the test suite is that I really care about how it builds / operates on an actual system and that (I think) would be different under mbox
. With docker, I'm aiming to set it up to have systemd and all the other things running so we can test some of the more complex features.
from node-deb.
This is fixed in the testing
branch and will eventually get merged into develop
. Closing to prevent wasted work from anyone.
from node-deb.
Related Issues (20)
- add option to not create system users or groups HOT 3
- Typo prevents removing links from .bin HOT 1
- add tests for Bionic Beaver when it's released
- npm install in postinst fails when having native library dependency HOT 3
- Question: usage of pm2
- bash: node-deb: command not found HOT 5
- unescaped newline inside substitute pattern HOT 1
- postinst prevent user creation HOT 2
- No more node_modules/.bin directory in the debian package HOT 7
- Migrate from Bash to JavaScript
- Error parsing file HOT 6
- Using dh-sysuser when available HOT 1
- Unable to run app HOT 9
- node-deb not ignoring own temp directory... HOT 1
- Does node_deb.entrypoints.cli support more than 1 file? HOT 1
- Deprecated dependencies HOT 1
- Use node-deb in bitbucket pipelines HOT 1
- dpkg-deb: error: unable to create 'real-app_0.1.0_all.deb': Success
- Add option to specify conflicts
- Add Conflicts in debian control template
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-deb.