Re: Docker questions

2022-04-26 Thread sebb
On Tue, 26 Apr 2022 at 18:16, Matt Sicker wrote: > > Try setting DOCKER_BUILDKIT=1 as an environment variable, then run > `docker build ...` however you'd normally do. I found a basic overview > of what buildkit does in this blog post: > https://www.cloudsavvyit.com/12441/what-is-dockers-buildkit-

Re: Docker questions

2022-04-26 Thread Matt Sicker
Try setting DOCKER_BUILDKIT=1 as an environment variable, then run `docker build ...` however you'd normally do. I found a basic overview of what buildkit does in this blog post: https://www.cloudsavvyit.com/12441/what-is-dockers-buildkit-and-why-does-it-matter/ On Tue, Apr 26, 2022 at 11:22 AM se

Re: node.js does not (yet) support Ubuntu 22.04

2022-04-26 Thread Sam Ruby
On Tue, Apr 26, 2022 at 12:06 PM sebb wrote: > > Just discovered that node.js does not yet support Ubuntu 22.04, so no > point looking at that version for now: > > https://github.com/nodesource/distributions/ n and nvm can be used to install other versions. Example: FROM ubuntu:22.04 ENV DEBIAN

Re: Docker questions

2022-04-26 Thread sebb
On Tue, 26 Apr 2022 at 16:51, Matt Sicker wrote: > > One thing to consider for optimizing the Docker build here is the > buildkit feature: > https://docs.docker.com/engine/reference/commandline/buildx/ and > https://docs.docker.com/engine/reference/commandline/builder/ Thanks, but I cannot work o

node.js does not (yet) support Ubuntu 22.04

2022-04-26 Thread sebb
Just discovered that node.js does not yet support Ubuntu 22.04, so no point looking at that version for now: https://github.com/nodesource/distributions/

Re: Warnings re: already initialized constants

2022-04-26 Thread sebb
On Tue, 26 Apr 2022 at 16:48, Matt Sicker wrote: > > If there's environment drift in Whimsy VM versus Whimsy Docker, could > we deploy Whimsy as a container instead? Make the Whimsy VM a > container host, that sort of thing. Decouples our versions of Apache, > Ruby, etc., from the underlying OS.

Re: Docker questions

2022-04-26 Thread Matt Sicker
One thing to consider for optimizing the Docker build here is the buildkit feature: https://docs.docker.com/engine/reference/commandline/buildx/ and https://docs.docker.com/engine/reference/commandline/builder/ There is also buildpacks.io which is related, though I'm not sure if it's a feature bui

Re: Warnings re: already initialized constants

2022-04-26 Thread Matt Sicker
If there's environment drift in Whimsy VM versus Whimsy Docker, could we deploy Whimsy as a container instead? Make the Whimsy VM a container host, that sort of thing. Decouples our versions of Apache, Ruby, etc., from the underlying OS. On Tue, Apr 26, 2022 at 10:10 AM sebb wrote: > > On Tue, 26

Docker questions

2022-04-26 Thread sebb
The Docker build currently targets Ubuntu 20.04, which I think is known as Focal Fossa. However there is a reference in the build to bionic, which is a previous release: echo "deb http://opensource.wandisco.com/ubuntu bionic svn110" Does that still make sense? Also I find that there seem to be

Re: Warnings re: already initialized constants

2022-04-26 Thread sebb
On Tue, 26 Apr 2022 at 16:03, Sam Ruby wrote: > > On Tue, Apr 26, 2022 at 10:27 AM sebb wrote: > > > > On Tue, 26 Apr 2022 at 14:53, Sam Ruby wrote: > > > > > > On Tue, Apr 26, 2022 at 9:29 AM sebb wrote: > > > > > > > > There are a lot of older versions of Gems around - maybe time to do a > >

Re: Warnings re: already initialized constants

2022-04-26 Thread Sam Ruby
On Tue, Apr 26, 2022 at 10:27 AM sebb wrote: > > On Tue, 26 Apr 2022 at 14:53, Sam Ruby wrote: > > > > On Tue, Apr 26, 2022 at 9:29 AM sebb wrote: > > > > > > There are a lot of older versions of Gems around - maybe time to do a > > > cleanup? > > > > It would take a bit of refactoring, but the

Re: Warnings re: already initialized constants

2022-04-26 Thread sebb
On Tue, 26 Apr 2022 at 14:53, Sam Ruby wrote: > > On Tue, Apr 26, 2022 at 9:29 AM sebb wrote: > > > > There are a lot of older versions of Gems around - maybe time to do a > > cleanup? > > It would take a bit of refactoring, but there is code in the Rakefile > that might be useful. On my ubuntu

Re: Warnings re: already initialized constants

2022-04-26 Thread Sam Ruby
On Tue, Apr 26, 2022 at 9:29 AM sebb wrote: > > There are a lot of older versions of Gems around - maybe time to do a cleanup? It would take a bit of refactoring, but there is code in the Rakefile that might be useful. On my ubuntu machine, I need to prefix gem install commands with `sudo` and h

Re: Warnings re: already initialized constants

2022-04-26 Thread sebb
On Tue, 26 Apr 2022 at 14:11, Sam Ruby wrote: > > On Tue, Apr 26, 2022 at 8:24 AM sebb wrote: > > > > For example: "warning: already initialized constant Net::ProtocRetryError" > > > > The following Ruby code generates the warning on Whimsy (and in my > > Docker build): > > > > require 'net/http'

Re: Warnings re: already initialized constants

2022-04-26 Thread Sam Ruby
On Tue, Apr 26, 2022 at 8:24 AM sebb wrote: > > For example: "warning: already initialized constant Net::ProtocRetryError" > > The following Ruby code generates the warning on Whimsy (and in my > Docker build): > > require 'net/http' > require 'net/smtp' > > The same happens if the require order i

Warnings re: already initialized constants

2022-04-26 Thread sebb
For example: "warning: already initialized constant Net::ProtocRetryError" The following Ruby code generates the warning on Whimsy (and in my Docker build): require 'net/http' require 'net/smtp' The same happens if the require order is reversed. I wondered why the public json scripts only repor