Open chanezon opened 7 years ago
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
COPY couchbase-javaee.war /opt/jboss/wildfly/standalone/deployments/airlines.war
@chanezon what's the issue here?
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
@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.
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
@chanezon sounds good.
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