LOC-30: Docker Images



Issue Information

Issue Type: Task
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: LocalChat (LOC)
Resolution: Done (2020-12-14 16:56:34)
Components: Server ,

Created: 2020-12-14 15:41:49
Time Spent Working


Description
LOC-18 built an ansible playbook which could be used to deploy server instances.

For more ease of use (and, largely, because I want to tinker around with it) - should look at building docker images.


Issue Links

Toggle State Changes

Activity


The codebase is quite old, and written in Python2, so will need to use an older base image for now.

I'll start with Ubuntu 16.04, and then maybe look at moving to something like Alpine later. If this project were being supported in the longer term then obviously we should really be porting to Python3 anyway.

For now, the main aim is to avoid too many headaches.
Server image successfully built - tagged with localchat-server

It was always the client, though, which had the more troublesome dependencies, so need to build an image for that too.

Repo: LocalChat
Commit: d40c14971895fc21c4749a1b60bdc0bc3c6179fd
Author: B Tasker <github@<Domain Hidden>>

Date: Mon Dec 14 15:57:31 2020 +0000
Commit Message: LOC-30 Add initial docker image build

This runs as root, so obviously should not be used. Tidying/fixing coming shortly



Added (+)
-------
docker/Dockerfile




Webhook User-Agent

GitHub-Hookshot/fde777f


View Commit


Repo: LocalChat
Commit: c7ac58267d8b99ccb4d2230627721b71a55da4f1
Author: B Tasker <github@<Domain Hidden>>

Date: Mon Dec 14 16:00:43 2020 +0000
Commit Message: LOC-30 Run as non-privileged user



Modified (-)(+)
-------
docker/Dockerfile




Webhook User-Agent

GitHub-Hookshot/fde777f


View Commit


Repo: LocalChat
Commit: ae4dcf96c24e7e174672a1c42c299df02d61c5f9
Author: B Tasker <github@<Domain Hidden>>

Date: Mon Dec 14 16:01:28 2020 +0000
Commit Message: LOC-30 Set Locale



Modified (-)(+)
-------
docker/Dockerfile




Webhook User-Agent

GitHub-Hookshot/fde777f


View Commit


Repo: LocalChat
Commit: 8577ff05505733eb295bc62d2f41f0bf50bfe4f7
Author: B Tasker <github@<Domain Hidden>>

Date: Mon Dec 14 16:50:33 2020 +0000
Commit Message: LOC-30 Update READMEs



Added (+)
-------
docker/README.md


Modified (-)(+)
-------
README.md




Webhook User-Agent

GitHub-Hookshot/fde777f


View Commit

This is implemented - though there'll always be room for improvement.

I've updated the docs, but basically, running should be as simple as
docker run -p 1443:8080 bentasker12/localchat:server


To expose the service on TCP 1443 and then
docker run -it bentasker12/localchat:client https://server_url:1443


To connect out to it.
btasker changed status from 'Open' to 'Resolved'
btasker added 'Done' to resolution
btasker changed status from 'Resolved' to 'Closed'