Date

Attendees

Goals

  • Making isolated docker resources available to TSSG members
  • Review the new installation instructions for scheduledb
    by testing the steps in a Docker Toolbox environment.

Discussion items

ItemWhoNotes
Isolating and sharing docker resources

Problem Statement

Whenever a TSSG Member has low system resources (i.e. less than 4 cores, slow CPU, insufficient memory or slow storage) it can be difficult to run multiple docker containers for testing micro-services or learning docker locally. 

Proposed Solution

I am looking into a way to make my systems available for your individual testing.  If successful, you would be able to login using ssh, build a suite of micro-services, open up browsers, and kick off automated testing against the services.

Reference

/etc/hosts

On Windows

  • When using WebRoot (by Carbonite)

    • In settings Webroot Secure Anywhere -> Advanced Settings -> Shields,

      Disable Prevent any process from modifying hosts file

  • Use an editor opened as administrator to modify the file in:
    /c/Windows/System32/drivers/etc/hosts
Install scheduledb in Docker ToolboxJoel created a few commits to solve problems with running in Docker Toolbox

commit 410efb2510028d4d0fe3837625f819717f9e1e33
Author: joel sharasheff <jsharasheff@hotmail.com>
Date: Sat Aug 22 13:38:20 2020 -0400

Changed softlinks to copies of sites-available files to accommodate Windows environments.

commit 6268ddc347b4a13918ebc3a648c3fb6c8031f1e0
Author: joel sharasheff <jsharasheff@hotmail.com>
Date: Sat Aug 22 13:36:17 2020 -0400

Moved argument y in call to apt install.

commit 66d6070b57522cd5f2ba99a7ca448a7e957e2c86
Author: joel sharasheff <jsharasheff@hotmail.com>
Date: Sat Aug 22 13:35:26 2020 -0400

Improved logging for mongo.install.

Soft link errors in nginx/sites-enabled files when scheduledb.install is run in Docker for Windows.

Fixed in a commit.

commit 272d2cba256f14c4b7485dc70a31e1b0d29fdf69
Author: Ralph A. Navarro Jr <ralph@navarrocomputing.com>
Date: Sat Aug 22 14:03:25 2020 -0400

Fixed softlink errors created by git between Windows and Linux.

Copied files from nginx/sites-available/* to nginx/sites-enabled/ rather than create soft links.

On Docker for Windows, the mounted sites-enabled and sites-available folders are empty.Paul Scheidemantel

In the nginx-Dockerfile, build the image by copying the sites-available and sites-enabled folders rather than having the container mount the host folders.

commit ad37c22e9a745010f0abd4469aac51fe299f67fe (HEAD -> scheduledb, origin/scheduledb)
Author: Paul Scheidemantel <paul.scheidemantel@gmail.com>
Date: Sat Aug 22 14:53:36 2020 -0400

copying nginx sites configurations instead of using mounts to support windows

JWT Security Token TimeoutsPaul Scheidemantel
  • 1st expired will create a new JWT after you perform some frontend request that requires authentication.
    Most requests to the frontend requires authentication.
  • defaults will be
    • 1st JWT: Access Token

      15 min

    • 2nd JWT: Refresh Token

      2 hours

TSSG Environment VairablesPaul ScheidemantelWill be cleaning up TSSG environment variables.
Running scheduledb in WSL2Paul Scheidemantel
  • Found out that Docker for Windows and WSL2 uses the same docker daemon.  That is, container and image changes in one environment are seen in the other environment.
  • Docker for Windows uses the windows User file locations.
  • However, WSL2 uses mounted drives.
  • /mnt/c/... is mounted by default.
  • Other drives will need to be mounted separately within the Linux subsystem.

Action items

  • Paul Scheidemantel: Cleaning up TSSG environment variables.
  • Ralph A. Navarro Jr. to Assist Paul with running scheduledb in WSL2.  Mount drives with source, etc.