arun-gupta / docker-images

Docker Images
249 stars 220 forks source link

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

Open chanezon opened 7 years ago

chanezon commented 7 years ago

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 commented 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

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

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

arun-gupta commented 7 years ago

@chanezon what's the issue here?

chanezon commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

@chanezon sounds good.