How to run Lychee server on a windows 10 computer

I’m rocking Arch with KDE plasma. Had a few challenges, but most of it got sorted, so it’s working good now.
My goal was to reinstall from scratch on the nvme drive after ironing out the bumps, but not sure I remember everything I did now… :thinking:

Well, I suspect you’re just overcomplicating things in your brain as you’re still getting your head around docker. Don’t be too hard on yourself.

My knowledge of docker was insufficient to do the relatively simple task of run Lyche server on my home workstation. I do appreciate the tips that got me to learn what I need @chbmb :grinning:

So you up and running now?

Not yet - although I still care to do it. As I learned more about creating Docker images, running them in containers, using “bridge networks” to facilitate the communications between Lychee “parts” (@aptalca suggests using “named containers” to establish the needed connection between Lychee and its database), I would like to propose a deal:

I will create a detailed document on how to best create and manage a Lychee instance on Windows 10 and publish it at the proper place - and in return, I would like some minor guidance (@chbmb seems like a knowledgeable “mentor” for this task).

Ask for help when you need it here by all means, not sure I’m the most knowledgeable around, but we can try and muddle through.

Thanks @chbmb - let me start with a more generic question: How to create a Linux image (say Ubuntu), that has the needed utilities like wget, curl, etc, “baked in”? Interactively (running inside that ubuntu shell as a root, I would do this as

apt-get install wget curl

I would prefer to use Dockerfile like this:

FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install curl wget

The problem with this is that the RUN apt-get install curl wget fails when invoked from Dockerfile as shown below:

Step 3/3 : RUN apt-get install curl wget
 ---> Running in 2942e3e0a1ac
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ca-certificates krb5-locales libasn1-8-heimdal libcurl3-gnutls libffi6
  libgmp10 libgnutls30 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
  libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 libldap-2.4-2 libnettle6 libp11-kit0 libroken18-heimdal
  librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0
  libssl1.0.0 libtasn1-6 libwind0-heimdal openssl
Suggested packages:
  gnutls-bin krb5-doc krb5-user libsasl2-modules-otp libsasl2-modules-ldap
  libsasl2-modules-sql libsasl2-modules-gssapi-mit
  | libsasl2-modules-gssapi-heimdal
The following NEW packages will be installed:
  ca-certificates curl krb5-locales libasn1-8-heimdal libcurl3-gnutls libffi6
  libgmp10 libgnutls30 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
  libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 libldap-2.4-2 libnettle6 libp11-kit0 libroken18-heimdal
  librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0
  libssl1.0.0 libtasn1-6 libwind0-heimdal openssl wget
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 5644 kB of archives.
After this operation, 19.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
The command '/bin/sh -c apt-get install curl wget' returned a non-zero code: 1

Since this command runs in the background, the question Do you want to continue? [Y/n] causes the execution to abort.

There ought to be a way to run such Dockerfile with some way of providing this answer - but after hours of searching, I am still searching :disappointed_relieved:

Self-answered:

RUN apt-get install -y curl wget

:face_with_raised_eyebrow: