[GitHub] [nutch] lewismc commented on pull request #691: NUTCH-2883 Provide means to run server and webapp as persistent services in Docker container

2021-11-24 Thread GitBox


lewismc commented on pull request #691:
URL: https://github.com/apache/nutch/pull/691#issuecomment-978441267


   I'll update this to remove the webapp.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@nutch.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [nutch] lewismc commented on pull request #691: NUTCH-2883 Provide means to run server and webapp as persistent services in Docker container

2021-07-07 Thread GitBox


lewismc commented on pull request #691:
URL: https://github.com/apache/nutch/pull/691#issuecomment-876084540


   @sebastian-nagel here's what I tried. First prune entire Docker development 
cache
   ```
   docker system prune -a
   ...
   Total reclaimed space: 14.1GB
   ```
   The build
   ```
   docker % docker build -t apache/nutch . --build-arg BUILD_MODE=2 --build-arg 
SERVER_PORT=8081 --build-arg SERVER_HOST=0.0.0.0 --build-arg WEBAPP_PORT=8080
   ...
   [+] Building 743.6s (17/17) FINISHED
=> [internal] load build definition from Dockerfile 

0.0s
=> => transferring dockerfile: 4.42kB   

0.0s
=> [internal] load .dockerignore

0.0s
=> => transferring context: 2B  

0.0s
=> [internal] load metadata for docker.io/library/alpine:3.13   

1.4s
=> [base 1/8] FROM 
docker.io/library/alpine:3.13@sha256:f51ff2d96627690d62fee79e6eecd9fa87429a38142b5df8a3bfbb26061df7fc

0.6s
=> => resolve 
docker.io/library/alpine:3.13@sha256:f51ff2d96627690d62fee79e6eecd9fa87429a38142b5df8a3bfbb26061df7fc

 0.0s
=> => 
sha256:f51ff2d96627690d62fee79e6eecd9fa87429a38142b5df8a3bfbb26061df7fc 1.64kB 
/ 1.64kB
   0.0s
=> => 
sha256:def822f9851ca422481ec6fee59a9966f12b351c62ccb9aca841526ffaa9f748 528B / 
528B
   0.0s
=> => 
sha256:6dbb9cc54074106d46d4ccb330f2a40a682d49dda5f4844962b7dce9fe44aaec 1.47kB 
/ 1.47kB
   0.0s
=> => 
sha256:540db60ca9383eac9e418f78490994d0af424aab7bf6d0e47ac8ed4e2e9bcbba 2.81MB 
/ 2.81MB
   0.4s
=> => extracting 
sha256:540db60ca9383eac9e418f78490994d0af424aab7bf6d0e47ac8ed4e2e9bcbba 

   0.2s
=> [internal] load build context

0.0s
=> => transferring context: 2.74kB  

0.0s
=> [base 2/8] WORKDIR /root/

0.0s
=> [base 3/8] RUN apk update

1.0s
=> [base 4/8] RUN apk --no-cache add apache-ant bash git openjdk11 
supervisor  

18.6s
=> [base 5/8] RUN echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk' >> 
$HOME/.bashrc   
  
0.2s
=> [base 6/8] RUN git clone https://github.com/apache/nutch.git 
nutch_source &&  cd nutch_source &&   

[GitHub] [nutch] lewismc commented on pull request #691: NUTCH-2883 Provide means to run server and webapp as persistent services in Docker container

2021-06-30 Thread GitBox


lewismc commented on pull request #691:
URL: https://github.com/apache/nutch/pull/691#issuecomment-871943637


   OK this PR is ready for full review. I've added in the conditional logic as 
explained in the README. 
   There are three build **modes** which can be activated using the 
`--build-arg MODE=0` flag. All values used here are defaults.
* 0 == Nutch master branch source install with `crawl` and `nutch` scripts 
on `$PATH`
* 1 == Same as mode 0 with addition of **Nutch REST Server**; additional 
build args `--build-arg SERVER_PORT=8081` and `--build-arg SERVER_HOST=0.0.0.0`
* 2 == Same as mode 1 with addition of **Nutch WebApp**; additional build 
args `--build-arg WEBAPP_PORT=8080`
   I augmented a the documentation so the above is clear. I also showed how we 
can browse container logs for server and webapp if they are running.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@nutch.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org