treehouses / builder

Treehouses Awesome 👓 Raspberry Pi Image Builder 🏗
http://download.treehouses.io
GNU Affero General Public License v3.0
49 stars 22 forks source link

Output of pirateship docker #100

Closed snazzybunny closed 6 years ago

snazzybunny commented 7 years ago

Output only shows for couchdb and not for portainer.

pi@raspberrypi:~ $ sudo pirateship docker
- Image: /root/dockerimages/dogi-rpi-couchdb.tar.gz

The image dogi-rpi-couchdb.tar.gz has been loaded.
pi@raspberrypi:~ $
pi@raspberrypi:~ $ docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
portainer/portainer   latest              a64783906447        13 days ago         10.99 MB
dogi/rpi-couchdb      latest              9d5f8c7d3197        2 years ago         180.2 MB
i5o commented 7 years ago

That is weird; is portainer in /root/dockerimages?

    images.forEach(function(image) {
      var imagePath = "/root/dockerimages/" + image;
      console.log("- Image: " + imagePath);
      var command = "gzip -cd " + imagePath + " | docker load";
      exec(command, function(error, stdout, stderr) {
        if (error) {
          return console.log('There has been an error while trying to load this image (' + imagePath + ')');
        }
        fs.unlinkSync(imagePath);
        console.log('The image ' + image + ' has been loaded.');
      });
    });

it basically goes through every file there