lbrynet refactorings #72

Merged
EnigmaCurry merged 1 commit from lbrynet-start.sh into master 2019-05-04 22:33:46 +02:00
EnigmaCurry commented 2019-05-01 18:37:56 +02:00 (Migrated from github.com)

Various lbrynet container additions:

  • Production: Multi-stage Dockerfile.
  • Production: Adds VERSION ARG to specify the lbrynet version to download.
  • Compiler: Adds REPO ARG to specify alternate git repository to build from.
  • Fixes checkmount arg passing.
  • Adds correct binding IP address to start.sh
  • Adds mountable config to start.sh
  • Does not yet add any Layered Config like #70 (it's harder 'cause yaml)
Various lbrynet container additions: * Production: Multi-stage Dockerfile. * Production: Adds VERSION ARG to specify the lbrynet version to download. * Compiler: Adds REPO ARG to specify alternate git repository to build from. * Fixes checkmount arg passing. * Adds correct binding IP address to start.sh * Adds mountable config to start.sh * Does not yet add any Layered Config like #70 (it's harder 'cause yaml)
Leopere commented 2019-05-03 13:36:23 +02:00 (Migrated from github.com)

Are you certain that 127.0.0.1 isn't going to just bind it to the internal container processes IP only? Otherwise, this is great work thanks again!

Are you certain that 127.0.0.1 isn't going to just bind it to the internal container processes IP only? Otherwise, this is great work thanks again!
EnigmaCurry commented 2019-05-03 14:56:32 +02:00 (Migrated from github.com)

@Leopere Yes thank you I changed it to 0.0.0.0

@Leopere Yes thank you I changed it to 0.0.0.0
Leopere (Migrated from github.com) reviewed 2019-05-04 22:27:19 +02:00
@ -39,10 +39,11 @@ RUN apt-get update && \
FROM dependencies as compile
ARG REPO=https://github.com/lbryio/lbry.git
Leopere (Migrated from github.com) commented 2019-05-03 13:43:51 +02:00

This will be wonderfully useful, however, lbry's release schema isn't via branches as much as it is via tagged releases. So if this can be adjusted to pull tags automagically it would be extra useful.

This will be wonderfully useful, however, lbry's release schema isn't via branches as much as it is via tagged releases. So if this can be adjusted to pull tags automagically it would be extra useful.
@ -6,2 +7,3 @@
ADD https://lbry.io/get/lbrynet.linux.zip /lbrynet/lbrynet.linux.zip
ARG VERSION=latest
RUN URL=$(curl -s https://api.github.com/repos/lbryio/lbry/releases/$(if [ "${VERSION}" = 'latest' ]; then echo "latest"; else echo "tags/${VERSION}"; fi) | grep browser_download_url | grep lbrynet-linux.zip | cut -d'"' -f4) && echo $URL && curl -L -o /lbrynet.linux.zip $URL
Leopere (Migrated from github.com) commented 2019-05-03 13:44:26 +02:00

Same as above down here.

Same as above down here.
@ -10,3 +10,3 @@
else
`$@`
bash -c "$*"
fi
Leopere (Migrated from github.com) commented 2019-05-03 13:47:46 +02:00

I'm curious about the thoughts behind this change.

I'm curious about the thoughts behind this change.
Leopere (Migrated from github.com) commented 2019-05-03 13:39:44 +02:00

I would be wary of 127.0.0.1 as that should perspectively only accept connections from inside of the container itself and not on the external.

I would be wary of 127.0.0.1 as that should perspectively only accept connections from inside of the container itself and not on the external.
EnigmaCurry (Migrated from github.com) reviewed 2019-05-04 22:28:13 +02:00
EnigmaCurry (Migrated from github.com) commented 2019-05-04 22:28:13 +02:00

yes my mistake, fixed.

yes my mistake, fixed.
EnigmaCurry (Migrated from github.com) reviewed 2019-05-04 22:29:45 +02:00
@ -39,10 +39,11 @@ RUN apt-get update && \
FROM dependencies as compile
ARG REPO=https://github.com/lbryio/lbry.git
EnigmaCurry (Migrated from github.com) commented 2019-05-04 22:29:45 +02:00

This case will work with branches and tags. git checkout v0.37.0rc5 works for instance.

This case will work with branches and tags. ```git checkout v0.37.0rc5``` works for instance.
EnigmaCurry (Migrated from github.com) reviewed 2019-05-04 22:32:39 +02:00
@ -10,3 +10,3 @@
else
`$@`
bash -c "$*"
fi
EnigmaCurry (Migrated from github.com) commented 2019-05-04 22:32:39 +02:00

$@ was not accepting additional arguments beyond the first one. "$*" captures the entire argument string. You showed me the page https://eklitzke.org/bash-$%2A-and-$@ and he outlines the case for "$*" translating to "$1 $2 $3 ..." which is exactly what we want to pass to bash -c

`$@` was not accepting additional arguments beyond the first one. "$\*" captures the entire argument string. You showed me the page https://eklitzke.org/bash-$%2A-and-$@ and he outlines the case for "$*" translating to "$1 $2 $3 ..." which is exactly what we want to pass to `bash -c`
Leopere (Migrated from github.com) reviewed 2019-05-04 22:32:49 +02:00
@ -39,10 +39,11 @@ RUN apt-get update && \
FROM dependencies as compile
ARG REPO=https://github.com/lbryio/lbry.git
Leopere (Migrated from github.com) commented 2019-05-04 22:32:48 +02:00

I wonder if we can find a way to do new tag releases with magic.

I wonder if we can find a way to do new tag releases with magic.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-docker#72
No description provided.