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 build of wildfly-couchbase-javaee7 image does not work #10

Open
chanezon opened this issue Nov 2, 2016 · 6 comments
Open

docker build of wildfly-couchbase-javaee7 image does not work #10

chanezon opened this issue Nov 2, 2016 · 6 comments

Comments

@chanezon
Copy link

chanezon commented Nov 2, 2016

docker build -t chanezon/wildfly-couchbase-javaee7 .
Sending build context to Docker daemon 5.207 MB
Step 1 : FROM jboss/wildfly:latest
---> 4c99bd2cd264
Step 2 : RUN sudo yum install -y jq
---> Running in bf2c81e2ed81
/bin/sh: sudo: command not found
The command '/bin/sh -c sudo yum install -y jq' returned a non-zero code: 127

@chanezon
Copy link
Author

chanezon commented Nov 2, 2016

FROM jboss/wildfly:latest

USER root

RUN yum install -y epel-release &&
yum install -y jq &&
yum clean all

USER jboss

COPY check-for-bucket.sh /opt/jboss/wildfly/check-for-bucket.sh

#RUN /opt/jboss/wildfly/check-for-bucket.sh

COPY couchbase-javaee.war /opt/jboss/wildfly/standalone/deployments/airlines.war

@arun-gupta
Copy link
Owner

@chanezon what's the issue here?

@chanezon
Copy link
Author

chanezon commented Nov 2, 2016

jq needs epel on centos. yum. eeds to run as root. not sure why you need to populate the db when. uilding the image, it should happen at runtime

@arun-gupta
Copy link
Owner

@chanezon jq allows to parse JSON easily. What's the issue with EPEL?

This image was created a while back and never fully tested. Been using https://github.com/arun-gupta/docker-images/tree/master/couchbase for most of my samples now.

@chanezon
Copy link
Author

chanezon commented Nov 2, 2016

I'm following the java labs which points there to build the image. I wanted to fix the app to add timeout. If it's too broken I'll submit another tutorial instead

@arun-gupta
Copy link
Owner

@chanezon sounds good.

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

No branches or pull requests

2 participants