Skip to content

Commit

Permalink
Merge pull request #689 from EYBlockchain/daveroga/challenger
Browse files Browse the repository at this point in the history
Refactor challenger to be in main folder
  • Loading branch information
druiz0992 authored Jun 1, 2022
2 parents 50c1091 + 8b06920 commit c6baa42
Show file tree
Hide file tree
Showing 10 changed files with 3,760 additions and 46 deletions.
2 changes: 1 addition & 1 deletion challenger
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# --environment : test environment (such us localhost, docker, testnet). If no argument given
# challenger is launched in localhost environment

/usr/bin/env node cli/src/challenger.mjs "${@:1}"
/usr/bin/env node nightfall-challenger/src/index.mjs "${@:1}"
45 changes: 0 additions & 45 deletions cli/src/challenger.mjs

This file was deleted.

22 changes: 22 additions & 0 deletions nightfall-challenger/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# doc
README.md

#docker
docker-compose.yml
Dockerfile

# git
.git
.gitattributes
.gitignore
.github

# Node
node_modules/

#dev
.prettierignore
.prettierrc.js
.releaserc.json
.eslintrc
.eslintignore
104 changes: 104 additions & 0 deletions nightfall-challenger/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
6 changes: 6 additions & 0 deletions nightfall-challenger/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/bash
set -o errexit
set -o pipefail
# wait until there's a optimist instance up
while ! nc -z ${OPTIMIST_HOST:-optimist} ${OPTIMIST_PORT:-80}; do sleep 3; done
exec "$@"
Loading

0 comments on commit c6baa42

Please sign in to comment.