Coder Social home page Coder Social logo

Dockerize the app about seeker HOT 10 CLOSED

h3ct0rjs avatar h3ct0rjs commented on July 25, 2024
Dockerize the app

from seeker.

Comments (10)

thewhiteh4t avatar thewhiteh4t commented on July 25, 2024 2

@ohhayley Docker does not work in termux so i am making changes in the main script to make it work on termux its almost done and i will push it soon

from seeker.

thewhiteh4t avatar thewhiteh4t commented on July 25, 2024 1

i am trying to make it work on termux i will give it a go after that

from seeker.

h3ct0rjs avatar h3ct0rjs commented on July 25, 2024

Hi @thewhiteh4t how goes the docker file writing 😄

from seeker.

thewhiteh4t avatar thewhiteh4t commented on July 25, 2024

concept of docker is amazing, i am working on it, will push soon :)

from seeker.

h3ct0rjs avatar h3ct0rjs commented on July 25, 2024

Please let me know when you have something in your Dockerfile, I could do a proper review 😄

from seeker.

thewhiteh4t avatar thewhiteh4t commented on July 25, 2024

i have this right now :

FROM ubuntu
ADD . /seeker
RUN echo "Asia/Singapore" > /etc/timezone
RUN apt-get update > install.log
RUN apt-get -y install tzdata >> install.log
RUN dpkg-reconfigure -f noninteractive tzdata >> install.log
RUN apt-get -y install python python-pip apache2 php >> install.log
RUN pip install requests >> install.log
RUN cp -r seeker/template/nearyou/ var/www/html/
RUN chmod 777 var/www/html/nearyou/php/info.txt
RUN chmod 777 var/www/html/nearyou/php/result.txt
CMD ./seeker/seeker.py

initially it was getting stuck at choosing timezone for that i added lines 3,5 and 6 and its working now
at first the docker executed properly and seeker was working but now its hanging after printing

TERM environment variable not set.

earlier seeker executed after printing this line but now it just hangs.

Build output:

docker build -t seeker .
Sending build context to Docker daemon  34.04MB
Step 1/12 : FROM ubuntu
latest: Pulling from library/ubuntu
c64513b74145: Pull complete 
01b8b12bad90: Pull complete 
c5d85cf7a05f: Pull complete 
b6b268720157: Pull complete 
e12192999ff1: Pull complete 
Digest: sha256:3f119dc0737f57f704ebecac8a6d8477b0f6ca1ca0332c7ee1395ed2c6a82be7
Status: Downloaded newer image for ubuntu:latest
 ---> 735f80812f90
Step 2/12 : ADD . /seeker
 ---> 0c93002b6b99
Step 3/12 : RUN echo "Asia/Singapore" > /etc/timezone
 ---> Running in 344e1bd22909
Removing intermediate container 344e1bd22909
 ---> fd739c0e0fa9
Step 4/12 : RUN apt-get update > install.log
 ---> Running in 5752dc63bab8
Removing intermediate container 5752dc63bab8
 ---> 422c345dd030
Step 5/12 : RUN apt-get -y install tzdata >> install.log
 ---> Running in e4a5ec6a323c
debconf: delaying package configuration, since apt-utils is not installed
Removing intermediate container e4a5ec6a323c
 ---> dc6aafd18989
Step 6/12 : RUN dpkg-reconfigure -f noninteractive tzdata >> install.log
 ---> Running in a5fe0de89a7f

Current default time zone: 'Etc/UTC'
Local time is now:      Fri Aug  3 17:59:28 UTC 2018.
Universal Time is now:  Fri Aug  3 17:59:28 UTC 2018.

Removing intermediate container a5fe0de89a7f
 ---> 2f558ff28fc5
Step 7/12 : RUN apt-get -y install python python-pip apache2 php >> install.log
 ---> Running in a87474996f2d
debconf: delaying package configuration, since apt-utils is not installed
Removing intermediate container a87474996f2d
 ---> dde3f5fd7a69
Step 8/12 : RUN pip install requests >> install.log
 ---> Running in 1c40877b7afb
Removing intermediate container 1c40877b7afb
 ---> 95b2963d41be
Step 9/12 : RUN cp -r seeker/template/nearyou/ var/www/html/
 ---> Running in 5089a794642f
Removing intermediate container 5089a794642f
 ---> ca4d358a2c2e
Step 10/12 : RUN chmod 777 var/www/html/nearyou/php/info.txt
 ---> Running in 979184a7ae5f
Removing intermediate container 979184a7ae5f
 ---> bca78594abd5
Step 11/12 : RUN chmod 777 var/www/html/nearyou/php/result.txt
 ---> Running in 955b1d0900c4
Removing intermediate container 955b1d0900c4
 ---> 09f018cf3c23
Step 12/12 : CMD ./seeker/seeker.py
 ---> Running in 9ed4373086d9
Removing intermediate container 9ed4373086d9
 ---> 93f4fa010725
Successfully built 93f4fa010725
Successfully tagged seeker:latest

from seeker.

h3ct0rjs avatar h3ct0rjs commented on July 25, 2024

Hey,
Which terminal emulator are you using? I mean in the docker container, sometimes I export a variable like this :
export TERM=xterm

from seeker.

thewhiteh4t avatar thewhiteh4t commented on July 25, 2024

I used export TERM=xterm and its working now script is also running but this happens:
docker run --rm seeker
if i run using this TERM is not set and it still shows the error but
docker run -t --rm seeker
with -t TERM is set and error is gone

update

if i remove export TERM=xterm
and run by using
docker run -t seeker
error goes away

from seeker.

thewhiteh4t avatar thewhiteh4t commented on July 25, 2024

Docker support added, thanks, closing :)

from seeker.

ohhayley avatar ohhayley commented on July 25, 2024

So seeker work in termux?

from seeker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.