Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LipidLynxX in a docker environment #16

Open
tdrose opened this issue Feb 12, 2021 · 2 comments
Open

LipidLynxX in a docker environment #16

tdrose opened this issue Feb 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@tdrose
Copy link

tdrose commented Feb 12, 2021

Docker installation for LipidLynX

Many webtools run nowadays in a docker environment, to simplify the installation and maintaining process.
Maybe a dockerfile & instructions can be included in the repository.

Here are instructions I made, how to run the app in a docker container:

Steps

Clone LipidLynxX

git clone --depth=50 --branch=master https://github.com/SysMedOs/LipidLynxX.git LipidLynxX

Modify Configuration

Change the app_url variable in the file LipidLynxX/lynx/config.ini to 0.0.0.0

Build Docker container

sudo docker build -t lipidlynx .

Run the image

sudo docker run -p 127.0.0.1:5000:1399 lipidlynx

Access LipidLynxX

open http://127.0.0.1:5000 in your webbrowser

Dockerfile

FROM python:3.7-buster

COPY . .

WORKDIR /LipidLynxX
RUN pip install -r requirements.txt

EXPOSE 1399

# Important In the file LipidLynxX/lynx/config.ini, the app_url has to be set to 0.0.0.0 !
CMD ["python", "LipidLynxX.py"]
@ZhixuNi ZhixuNi added the enhancement New feature or request label Feb 12, 2021
@ZhixuNi
Copy link
Collaborator

ZhixuNi commented Feb 12, 2021

Hi @tdrose !

Many thanks for the suggestions.

I've tested your Dockerfile and protocols.
Due to some changes the python 3.7 will not work and the link to start the LipidLynxX web GUI is also changed to http://127.0.0.1:5000/lipidlynxx

Updated Dockerfile:

Create LipidLynxX/Dockerfile with following content

FROM python:3.8-buster

COPY . .

WORKDIR .
RUN pip install -r requirements.txt

EXPOSE 1399

# Important In the file LipidLynxX/lynx/config.ini, the app_url has to be set to 0.0.0.0 !
CMD ["python", "LipidLynxX.py"]

Modify Configuration

Change the app_url variable in the file LipidLynxX/lynx/config.ini to 0.0.0.0

Build Docker container

sudo docker build -t lynx .

Run the image

sudo docker run -p 127.0.0.1:5000:1399 lynx

Access LipidLynxX

open http://127.0.0.1:5000/lipidlynxx in your web browser

I've tested steps above and it is working on my Ubuntu 20.04.

Many thanks for your contribution. The docker installation will be add into next main commit.
We are making currently some other big changes, thus there will be a bit delay till I finally make the commit.

Thanks again for providing this detailed instruction @tdrose !

@tdrose
Copy link
Author

tdrose commented Feb 13, 2021

I did not test it with the latest commits. Thanks for updating the instruction!
This is a great tool and I am happy to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants