-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from Joystream/main
Update `dev` from `master`
- Loading branch information
Showing
32 changed files
with
799 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
node_modules/ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/lib | ||
/tmp | ||
/out-tsc | ||
/local | ||
|
||
# dependencies | ||
**/node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
error.log | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
**/node_modules/ | ||
|
||
# Serverless | ||
.serverless | ||
.webpack | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM node:14 | ||
|
||
# Set the working directory to /youtube-synch | ||
WORKDIR /youtube-synch | ||
|
||
# Copy the contents of the current directory to /youtube-synch | ||
COPY . /youtube-synch | ||
|
||
# Install dependencies | ||
RUN yarn install | ||
|
||
# Build the project | ||
RUN yarn build | ||
|
||
# Set the command to run when a container based on the image is started | ||
CMD ["./bin/run", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: '3.4' | ||
|
||
services: | ||
# Ref: https://www.elastic.co/guide/en/elasticsearch/reference/8.7/docker.html | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.0 | ||
container_name: elasticsearch | ||
environment: | ||
- discovery.type=single-node | ||
- bootstrap.memory_lock=true | ||
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m' | ||
- xpack.security.enabled=true | ||
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD:-password} | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
volumes: | ||
- es-data:/usr/share/elasticsearch/data | ||
ports: | ||
- 127.0.0.1:9200:9200 | ||
# Ref: https://www.elastic.co/guide/en/kibana/8.7/docker.html | ||
kibana: | ||
image: docker.elastic.co/kibana/kibana:8.7.0 | ||
container_name: kibana | ||
ports: | ||
- 127.0.0.1:5601:5601 | ||
depends_on: | ||
- elasticsearch | ||
environment: | ||
ELASTICSEARCH_HOSTS: http://elasticsearch:9200 | ||
ELASTICSEARCH_SERVICEACCOUNTTOKEN: ${ELASTICSEARCH_SERVICEACCOUNTTOKEN} | ||
XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: ${XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY} | ||
|
||
volumes: | ||
es-data: | ||
driver: local | ||
cache: | ||
driver: local | ||
data: | ||
driver: local | ||
|
||
networks: | ||
joystream: | ||
external: true | ||
name: youtube-synch_default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Compute a hash over files related to building youtube-synch docker image | ||
|
||
# Assuming cargo workspace root is same as the git repo root | ||
cd $(git rev-parse --show-toplevel) | ||
|
||
TAR=tar | ||
SED=sed | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
TAR=gtar | ||
SED=gsed | ||
fi | ||
|
||
# sort/owner/group/mtime arguments only work with gnu version of tar! | ||
${TAR} -c --sort=name --owner=root:0 --group=root:0 --mode 644 --mtime='UTC 2020-01-01' \ | ||
src \ | ||
Dockerfile \ | ||
config.yml \ | ||
package.json \ | ||
bin | | ||
if [[ -n "$RUNTIME_PROFILE" ]]; then ${SED} '$a'"$RUNTIME_PROFILE"; else tee; fi | | ||
shasum | | ||
cut -d " " -f 1 |
Oops, something went wrong.