MAINTAINER is deprecated in Dockerfile. COPY is preferred over ADD in Dockerfile if additional functonality of ADD is not being used. Improved Shebang lines in many files.

This commit is contained in:
Shubham Bhattar 2018-10-14 18:00:06 +05:30
parent 0fab25736f
commit e332e9c906
18 changed files with 32 additions and 32 deletions

View file

@ -1,10 +1,10 @@
## This base image is for running latest chainquery ## This base image is for running latest chainquery
FROM ubuntu:18.04 FROM ubuntu:18.04
MAINTAINER chamunks [at] gmail [dot] com LABEL MAINTAINER="chamunks [at] gmail [dot] com"
ADD chainqueryconfig.toml /data/chainqueryconfig.toml COPY chainqueryconfig.toml /data/chainqueryconfig.toml
ADD start.sh /usr/local/bin/start COPY start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \ RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
apt-get update && \ apt-get update && \

View file

@ -1 +1 @@
#!/bin/bash #!/usr/bin/env bash

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# default to run whatever the user wanted like "/bin/bash" # default to run whatever the user wanted like "/bin/bash"
## If user runs no need to run any more of the entrypoint script. ## If user runs no need to run any more of the entrypoint script.

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## For now keeping this simple. Potentially eventually add all command args as envvars for the Dockerfile or use safe way to add args via docker-compose.yml ## For now keeping this simple. Potentially eventually add all command args as envvars for the Dockerfile or use safe way to add args via docker-compose.yml
chainquery serve chainquery serve

View file

@ -1,7 +1,7 @@
## This base image is for running latest lbrycrdd ## This base image is for running latest lbrycrdd
# For some reason I may switch this image over to Alpine when I can RCA why it won't start. # For some reason I may switch this image over to Alpine when I can RCA why it won't start.
FROM ubuntu:18.04 FROM ubuntu:18.04
MAINTAINER chamunks [at] gmail [dot] com LABEL MAINTAINER="chamunks [at] gmail [dot] com"
RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \ RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
apt-get update && \ apt-get update && \
@ -20,9 +20,9 @@ RUN wget -O /usr/bin/lbrycrd-linux.zip https://github.com/lbryio/lbrycrd/release
rm lbrycrd-linux.zip && \ rm lbrycrd-linux.zip && \
chmod +x lbrycrdd lbrycrd-cli lbrycrd-tx chmod +x lbrycrdd lbrycrd-cli lbrycrd-tx
ADD debugpaste-it.sh /usr/local/bin/debugpaste-it COPY debugpaste-it.sh /usr/local/bin/debugpaste-it
ADD start.sh /usr/local/bin/start COPY start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
USER lbrycrdd USER lbrycrdd

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
echo "placeholder for now, come back soon for more debugging magic" echo "placeholder for now, come back soon for more debugging magic"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# default to run whatever the user wanted like "/bin/bash" # default to run whatever the user wanted like "/bin/bash"
## If user runs no need to run any more of the entrypoint script. ## If user runs no need to run any more of the entrypoint script.

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# ## ToDo: # ## ToDo:
# ## Get a test case to see if this is the first run or a repeat run # ## Get a test case to see if this is the first run or a repeat run

View file

@ -1,6 +1,6 @@
## This base image is for running the latest lbrynet-daemon release. ## This base image is for running the latest lbrynet-daemon release.
FROM ubuntu:18.04 FROM ubuntu:18.04
MAINTAINER chamunks [at] gmail [dot] com LABEL MAINTAINER="chamunks [at] gmail [dot] com"
RUN apt-get update && apt-get -y install unzip RUN apt-get update && apt-get -y install unzip
# RUN mkdir -pv /data && chown 1000:1000 /data # RUN mkdir -pv /data && chown 1000:1000 /data
@ -18,7 +18,7 @@ RUN wget -quiet -O /usr/bin/debugpaste https://github.com/nixc-us/debugpaste-it/
## Install into PATH ## Install into PATH
RUN mv /data/lbrynet-* /bin/ RUN mv /data/lbrynet-* /bin/
ADD debugpaste-it.sh /usr/local/bin/debugpaste-it COPY debugpaste-it.sh /usr/local/bin/debugpaste-it
## Daemon port [Intended for internal use] ## Daemon port [Intended for internal use]
EXPOSE 4444 EXPOSE 4444

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
echo "For now we're going to go with a tune in next time for a debugpaste." echo "For now we're going to go with a tune in next time for a debugpaste."

View file

@ -1,9 +1,9 @@
## base image for github.com/lbryio/reflector.go release binaries ## base image for github.com/lbryio/reflector.go release binaries
FROM ubuntu:18:04 FROM ubuntu:18:04
MAINTAINER chamunks [at] gmail [dot] com LABEL MAINTAINER="chamunks [at] gmail [dot] com"
ADD start.sh /usr/local/bin/start COPY start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \ RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/ && \
apt-get update && \ apt-get update && \

View file

@ -1,9 +1,9 @@
## base image for github.com/lbryio/reflector.go release binaries ## base image for github.com/lbryio/reflector.go release binaries
FROM golang:1.11.1 FROM golang:1.11.1
MAINTAINER chamunks [at] gmail [dot] com LABEL MAINTAINER="chamunks [at] gmail [dot] com"
ADD start.sh /usr/local/bin/start COPY start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/ RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
## Launch service will tell prism-bin what mode to run in. ## Launch service will tell prism-bin what mode to run in.
LAUNCHMODE="${MODE:-$1}" LAUNCHMODE="${MODE:-$1}"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
echo "=========================================================================" echo "========================================================================="
echo "=========================================================================" echo "========================================================================="
echo "lbry-docker: does not maintain or support custom configuration of traefik" echo "lbry-docker: does not maintain or support custom configuration of traefik"

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
docker network create -d bridge --subnet=10.5.1.0/16 lbrynet docker network create -d bridge --subnet=10.5.1.0/16 lbrynet

View file

@ -3,7 +3,7 @@
## https://hub.docker.com/_/node/ ## https://hub.docker.com/_/node/
# 8.11.2-alpine, 8.11-alpine, 8-alpine, carbon-alpine (8/alpine/Dockerfile) # 8.11.2-alpine, 8.11-alpine, 8-alpine, carbon-alpine (8/alpine/Dockerfile)
FROM node:8-alpine FROM node:8-alpine
MAINTAINER chamunks [at] gmail [dot] com LABEL MAINTAINER="chamunks [at] gmail [dot] com"
## Install base packages and clone repo to src directory. ## Install base packages and clone repo to src directory.
RUN apk update && apk --no-cache add git curl wget python build-base bash && \ RUN apk update && apk --no-cache add git curl wget python build-base bash && \
@ -20,9 +20,9 @@ RUN wget -quiet -O /usr/bin/debugpaste https://github.com/nixc-us/debugpaste-it/
## Install container support files ## Install container support files
RUN curl -s https://raw.githubusercontent.com/chamunks/docker-support/master/install | /bin/sh RUN curl -s https://raw.githubusercontent.com/chamunks/docker-support/master/install | /bin/sh
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
ADD healthcheck.sh /usr/local/bin/healthcheck COPY healthcheck.sh /usr/local/bin/healthcheck
ADD debugpaste-it.sh /usr/local/bin/debugpaste-it COPY debugpaste-it.sh /usr/local/bin/debugpaste-it
HEALTHCHECK CMD healthcheck HEALTHCHECK CMD healthcheck

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
echo "For now we're going to go with a tune in next time for a debugpaste." echo "For now we're going to go with a tune in next time for a debugpaste."

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -eo pipefail set -eo pipefail
## Add -x to set if you want really explicit feedback. ## Add -x to set if you want really explicit feedback.
## -u breaks unbound variables ## -u breaks unbound variables