Step 4/5 : COPY package.json .
ERROR: Service ‘web’ failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder229744397/package.json: no such file or directory
Error Launching Services!
Docker is running in the background. Is there something more I need to configure?
@George based on this, should I assume if I initially setup a project on Heroku, I can’t then change this to a different hosting provider? I’d need to then create a new project with ‘custom host’ for example, clone all files from the old project and then upload to a new host? Trying to find an appropriate cloud host that will also support the current upload functionality, in absence of AWS S3 connect.
Ok, thank you @George - still learning the intricacies. So currently the app is on NodeJS, if I wanted to utilize Docker - what would the process be? Create a new project with nodejs + docker, then manually copy/paste all the file structure from the old project? (I would assume that wouldn’t work!).
I think all you would need to do is create a new target with your existing project. No need to start a new one (and if you did, i’d clone from GIT rather than copy paste etc)
Further question @George I’ve been playing with Docker today on an existing project for the first time, and it was easy to deploy and get set up (I had to switch to Linux Containers like i found in other posts).
But one thing i can’t figure out is how to ‘migrate’ the database structure/data from your existing remote database connection into the Docker database connection?
In my case, and possible @mgaussie, we already have the project set up and a working remote DB connection. When i create a new Docker target the database is empty (or has sample data).
Should i be re-creating the db scheme in Wappler? Or should i connect remotely to docker DB through Navicat and import the existing DB schema.
If you have a remote database server already then you don’t have to use the one from docker, so just choose none there and keep using the existing as you do.
Ok… hadn’t thought of it that way. I’ll look into it.
I realise though, if i had built the DB from scratch in the new DB manager it would easily have migrated between targets just by applying the changes right?
Thanks to @George and everyone in this thread that contributed. Just got our first Docker Project rolling for deployment to AWS using Node JS. So a lot of firsts for us, and we imagine a lot of questions on the way! All in all took about an hour to set-up on Windows 10. Including the downloads and installations of Docker, WSL, Kernel update, ISO file, and of course Wappler Project creation. Quite pleasant experience and already learning new things. Am pretty adapt with *nix so that part doesn’t daunt me at all… All very interesting and exciting!
Something that might help others with WSL (on Windows) mad memory usage! Machine sounded like a wind tunnel, even my wife came in to see if I had turned AC on hahaha… Turned out the VM process VMMEM was consuming more memory than an expat consumes white wine here in sunny Portugal!
Found this on the MS Docs:
Simply create:
.wslconfig
In:
C:\Users\YOURUSERNAME
And add (set memory to a limit your machine can tolerate):