These are chat archives for reactioncommerce/reaction

11th
Feb 2018
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 09:31
@Vineeth73009077_twitter
I've added some code like custom imports/ plugins/ like reaction-swag-shop, how do i build the new docker image with this code?
it basically contains reaction-swag-shop, i'm passing SKIP_FIXTURES variable, but i keep getting following error, when i do docker run and trail its logs
09:22:43.193Z WARN Reaction: No shopId, waiting one second...
09:22:44.205Z WARN Reaction: No shopId, waiting one second...
Am i missing any steps?
hitachi19
@hitachi19
Feb 11 2018 12:24
hi,what is container eg container: "core",container: "accounts",container: "dashboard"?
hitachi19
@hitachi19
Feb 11 2018 12:33
@zenweasel what is container mean eg container: "core"? can you help me?
Michael Jenny
@prinzdezibel
Feb 11 2018 14:12
@Vineeth73009077_twitter Either the plugin code is not included in your docker image or the shop fixture is not available in your docker image (it should reside under /private/plugins/reaction-swag-shop - assuming your plugin is named reaction-swag-shop).
Ankit Kataria
@ankitkataria9
Feb 11 2018 14:38
hi, i am trying to install reaction commerce on centos 7
getting lot of errors. few of them are these:
gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/root/.meteor/packages/meteor-tool/.1.6.1.tf1nko.5xio++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/lib/build.js:258:23)
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 14:53
@prinzdezibel : I agree, every time i build the image it is always the reaction:latest code, and size never changes, even if it is not in gitignore, not sure what commands i need to run to get /private/plugins/reaction-swag-shop code into a new image
Michael Jenny
@prinzdezibel
Feb 11 2018 15:17
@Vineeth73009077_twitter how do you build the image?
docker build --build-arg TOOL_NODE_FLAGS="--max-old-space-size=2048" -t easypeasy .
Michael Jenny
@prinzdezibel
Feb 11 2018 15:18
how do you start it?
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 15:19
docker run -d -p 80:3000 -e ROOT_URL="http://easypeasymart.in" -e MONGO_URL="<mongo_url>" -e REACTION_EMAIL="admin@user.in" -e REACTION_USER="user" -e REACTION_AUTH="password" vineeth059/easypeasy:latest
i've set db from compose.io
i tried by passing -e SKIP_FIXTURES=1 as well
Michael Jenny
@prinzdezibel
Feb 11 2018 15:20
better delete your sensitive data here
important is to use your created image there, e.g. easypeasy:latest
not sure what vineeth059/mycustom:mytag is.
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 15:21
apologies.. i've corrected the message
vineeth059/easypeasy:latest
Michael Jenny
@prinzdezibel
Feb 11 2018 15:22
and do you have the plugin code in /imports/plugins/custom when running docker build ?
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 15:22
how do i verify that
i've the code in my local, not sure how to verify that in docker build or image created
but when i run locally, with export SKIP_FIXTURES=1 && reaction
works just fine
Michael Jenny
@prinzdezibel
Feb 11 2018 15:23
ok
did you use docker-compose or just docker run ?
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 15:24
just docker run
Michael Jenny
@prinzdezibel
Feb 11 2018 15:25
what does docker images give you?
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 15:26
let me check
REPOSITORY TAG IMAGE ID CREATED SIZE
easypeasy latest 61509000be9b 2 weeks ago 665MB
reactioncommerce/reaction latest 61509000be9b 2 weeks ago 665MB
it gives me 2 items, reactioncommerce/reaction:latest is always fetched from Dockerfile in reaction code
previously it was base, and always used to build base image, just changed it today
Michael Jenny
@prinzdezibel
Feb 11 2018 15:32
it looks like the easypeasy build has the same image id. you should actually build again and ensure that you use the docker base image
FROM reactioncommerce/base:v3.0.0
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 15:34
if i do that, i get the 2 images with same id and same size, just instead of 665MB, it'll be around 134MB
but will try again right away
Michael Jenny
@prinzdezibel
Feb 11 2018 15:35
go to your directory where your project lives and try building the image again. Have you seen this: https://docs.reactioncommerce.com/reaction-docs/master/deploying-reaction-using-docker
section "custom build"
Vineeth
@Vineeth73009077_twitter
Feb 11 2018 15:36
yup following the same commands
Patrick Newell
@pnewell4_twitter
Feb 11 2018 19:43
When creating a workflow, how do you advance a user onto the next step? i.e., let's say the workflow is: 1) some "about us" content; 2) create an account. When done, you are taken to the products grid.
Patrick Newell
@pnewell4_twitter
Feb 11 2018 20:03
once the user reads the about us, they click a button and are taken to the next step of registering.
If I am reading the marketplaceShops container correctly, this is something I will have to manage on my own. If that is true, do you have a suggestion for which collection I should be using? It seems like Account would be appropriate, but there is already a workflow which uses the Account collection. Is that ok?
Patrick Newell
@pnewell4_twitter
Feb 11 2018 20:16
looks like "workflow/pushCartWorkflow" is a better example?
anyway, I didn't see any mention of moving through the workflows in the Workflow docs, so thought maybe there was already something in place