Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: fix builds #157

Merged
merged 10 commits into from
Jan 2, 2019
Merged

Docker: fix builds #157

merged 10 commits into from
Jan 2, 2019

Conversation

Thann
Copy link
Contributor

@Thann Thann commented Dec 12, 2018

Also: Dockerhub should be updated to build images off of the development branch, OR master should get bumped. I think having both :dev & :stable images is the best solution.

@Thann Thann requested a review from bucko13 December 12, 2018 21:54
@tynes tynes self-requested a review December 13, 2018 21:05
@tynes
Copy link
Contributor

tynes commented Dec 17, 2018

Good calls on the multiple images that follow the two main branches. Testing this now

@tynes tynes requested a review from pinheadmz December 17, 2018 23:27
@tynes
Copy link
Contributor

tynes commented Dec 18, 2018

I pushed up some changes to this PR. I changed to building the local dockerfiles by default since our remote ones need to be set up and automated properly. I am installing unbound so that handshake can build properly and fixed a configuration problem with securityc.

If you docker-compose up, it should just work if you go to localhost, besides the websocket that tries to connect over ws instead of wss

@bucko13
Copy link
Contributor

bucko13 commented Jan 1, 2019

I added some extra comments around the BPANEL_PLUGINS variable in the compose file since I could see this causing some confusion if someone checks their config.js and it doesn't match their actual build. I also set connection-manager as one of the default BPANEL_PLUGINS.

I also created some more tags in docker hub as per the comments and have the compose pull from the :dev image. Ideally this will pull from :stable, but while we still work out the kinks of the plugin versioning, this is probably the better approach.

Unless there are other thoughts or comments, I'll merge this in and we can confirm that the tags work (and should be ready for the release).

For reference, here are the build tags I setup in docker hub:
screen shot 2018-12-31 at 6 11 02 pm

@bucko13
Copy link
Contributor

bucko13 commented Jan 1, 2019

dev builds were failing because of an empty plugins/local folder (the index gets built with a script).
15fbf29 adds a gitkeep to avoid the error.

@bucko13 bucko13 merged commit 32719b4 into development Jan 2, 2019
@bucko13 bucko13 deleted the docker branch February 17, 2019 00:17
bucko13 added a commit that referenced this pull request Feb 19, 2019
* clientFactory: update client conf handling (#97)

* index: loading animation (#98)

* bugfix: works over tls (#100)

* bugfix: works over tls

* bugfix: account for when port is undefined

* build-plugins: Loading, docker, and plugin-config tweaks (#102)

* Loading and docker tweaks

* Plugins can be overridden with cli or env configs

* Plugins config survives space padding

* footer: update stylings, add attribution, include node pool info (#105)

* feature: expose react-router to plugins (#106)

* router: send supported services with client info (#107)

* check for existence of client

* separate config check for multisig

* fix linting error

* put services in object

* server: Socket Manager (#103)

* test scaffolding for server side tests

* better logging on new socket for legacy system

* SocketManager basic functionality

* passing tests for subscriptions and for multiple connections

* add dispatch support

* add support for multiple client types and unsubscribe

* migrate from socketHandler to socketManager and cleanup

* package-lock

* docker: hsd update (#108)

* update package versions and cleanup

* fixes for docker environment bugs

* some cleanup

* webpack: add support for user specified api keys in bpanel config directory (#112)

* add support for user specified api keys in bpanel config directory

* nit: declaration in function scope

* store: switch network (#109)

* move reducer composer into own file

* update node info on network switch

* working reset state

* persist currentClient

* fix currentClient check

* update bpanel-util version

* add warnings about client info chain

* add all clients to socketManager

* Add STATE_REFRESHED support for better signaling and constants cleanup

* updated packages

* routes: Client config endpoints (#113)

* finished createConfig functionality with tests

* update for force support

* update GET endpoint for statusCheck and full configs scrubbed of keys and tokens

* send which nodes are failing for GET

* add delete endpoint

* add PUT route

* update API for more efficient network checking, and being more explicit with reporting errors (no more nested try/catch/if/else. Also updated status api to 'health'

* bugfix: pull in resolves lost in rebase (#115)

* server: Cleanup and remove deprecated endpoints  (#114)

* cleanup deprecated endpoints

* remove unecessary code for default client.
also moves out some config helpers into the helpers file

* Modularize api (#116)

* cleanup deprecated endpoints

* remove unecessary code for default client.
also moves out some config helpers into the helpers file

* modularize api endpoints for clients

* fix bug with clients POST handler

* remove need for closures in endpoint handlers

* cleanup

* bugfix: remove bcoinuri (#119)

* deps: bump bpanel-ui (#118)

* server: api filters - blacklisting (#117)

* cleanup deprecated endpoints

* remove unnecessary code for default client.
also moves out some config helpers into the helpers file

* modularize api endpoints for clients

* fix bug with clients POST handler

* add basic blacklist support

* add consistent error response

* remove need for closures in endpoint handlers

* flexible blacklisting with RegExp

* cleanup delete handler

* error catching cleanup

* update custom catchall error handler

* move blacklisting to top of middleware stream

* deps: bump bmultisig (#121)

* Backend plugins (#120)

* add backend plugin endpoints

* set clientsMap on request object

* build-plugins: add check for correct versions of npm and node (#123)

* add check for correct versions of npm and node

* add warning about path and fix typo

* socketmanager: socket proxy (#122)

* add backend support for client side node via wsproxy

* set the socket port in the app store so other parts of the app can retrieve it

* set socket port from environment

* Fixes (#126)

* truncate table header overflow

* lint fixes

* update network check behavior for plugin installation

* update network status check

* deps: remove bad dep (#127)

* SocketManager: Disconnect sockets (#124)

* testing subscription handling

* add support for unsubscribing on disconnect

* update package-lock

* add more clarifying comments and cleanup

* update version of bcrypto

* update nav-actions crypto algo

* themeGenerator: add selectable and hover row CSS (#125)

* vendor: add license (#131)

* vendor: add license

* bugfix

* webapp: viewport tag for mobile (#133)

* package.json: stability (#135)

* update karma

* stabalize package versions

* stabalize versions

* server: client configs refactor (#132)

* update handling of client errors

* update version of bcrypto

* update nav-actions crypto algo

* sanitize empty strings from client options

* label styles in theme config

* add package constants

* optimize dll webpack build

* support for node-host or host config options

* add support for checking if config's chain matches with node

* expose pkg file

* add support to reset clients without restarting the server

* add client and make bsert available via webpack

* cleanup api

* cleanup

* add reducer to remove client config

* clients updates for health/status check

* update client reducer replaces whole previous client state

* add new styles for Paper component

* log health status message

* package: update dependencies (#136)

* Panel: Loadable fix (#138)

* fix lint command

* remove react loadable

* server: add process.title (#142)

* configs: ignore argv (#140)

* client configs: ignore argv

* server: join client prefix path

* api: remove add, update, and delete config endpoints (#139)

* add, update, and delete config endpoints removed from core

* add handler for health check

* update backend plugin api to support before _and_ after core middleware

* support custom log levels

* index.html: add base to html template (#145)

* theme: add modal styles (#143)

* basic modal styles

* update styling

* update paper styling

* bump bpanel-ui

* fixes for sidebar ordering and client health (#146)

* update client and services handling

* keep pathName if passed

* fix empty socket bug and bump bpanel-ui

* fix startup server bug

* cleanup

* bugfix: remove extra div (#147)

* theme: remove z-index (#149)

* clients: support for startup with no clients (#152)

* refactor for try/catch around new connection handling

* return 404 for no default client found

* update server to allow for no available client configs

* catch situations on server where no default config or client

* handle situation on app mount where there is no default config

* reset state when clearing current client

* update deps

* Preset 0 (#153)

* upgrade from preset-3 to preset-0

* remove carrot

* theme: fixes for bwallet polish (#155)

* fixes to default modal, requires update for bpanel-ui

* version bumps

* Docker: fix builds (#157)

* Docker: fix builds

* remove extra whitespace

* bugfix: git parse, handshake deps

* bugfix: allow for nginx to route properly

* bpanel: expose tls port

* add details to README

* add gitkeep for local plugins folder

* package: bump -utils to 0.1.7 (#162)

adds support for isSpv check in client. Needed for recent blocks update.

* remove lookbehind (#160)

* remove lookbehind

* support spaces in agent string

* server: Consolidate loggers (#161)

* deps: remove winston plus other deps

* logger: convert to blgr from winston

* fix tests

* working blgr w/ bpanel configs and cleanup

* package.json: update dependencies (#163)

* preinstall: start with settings and connection-manager plugins (#164)

* start with settings and connection-manager plugins

* remove bui

* scripts: typo (#166)

* server: multisig updates (#168)

* github bmultisig and multisig serve default false

* default to multisig false

* fix host config bug

* add clientsDir listener after endpoints are setup

* docs: self signed cert helper (#172)

* store: Persist state for whitelisted plugins (#174)

* track state of rehydration to fix persistence with clientsHydrated

* bugfix: old browserslist (#176)

* bugfix: old browserslist

* deps: update

* update packages (#178)

* update packages

* update bledger

* fix so that localhost is properly used as fallback for client factory (#181)

* bcoin wallet pagination test: docker container and init script (#167)

* delink from local datadir

* use braydonf wallet-pag branch

* warning in readme

* switch to pinheadmz wall-pag branch

* reenable local datadir

* new init script wallet acct setup

* working init script

* revert readme

* fix mining bug

* randomize acct segwit bool

* switch to bcoin-expirimental

* fix dummy-wallets coinbase maturity

* comments

* workaround restarts

* make pagination script default init

* Fix "account not found" error (#182)

* fix docker image (#185)

* Patches (#186)

* simpler script, update readme, and update deps

* connect socket on app mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants