olacabs / jackhammer

Jackhammer - One Security vulnerability assessment/management tool to solve all the security team problems.
https://jch.olacabs.com/userguide
Other
718 stars 162 forks source link

Error bundle.sh on windows #4

Closed omarkurt closed 7 years ago

omarkurt commented 7 years ago

Steps

git clone https://github.com/olacabs/jackhammer sh ./docker-build.sh

Error : bundle.sh: line 14: syntax error: unexpected end of file ERROR: Service 'web' failed to build: The command '/bin/sh -c bash bundle.sh' returned a non-zero code: 2

....
Step 24/45 : RUN apt-get -y install phantomjs
 ---> Using cache
 ---> 7df46559ccf4
Step 25/45 : RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv
 ---> Using cache
 ---> 3d1a5382230e
Step 26/45 : RUN git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build
 ---> Using cache
 ---> 58056546a6a8
Step 27/45 : RUN echo 'eval "$(rbenv init -)"' >> $HOME/.profile
 ---> Using cache
 ---> 61646b84df75
Step 28/45 : RUN echo 'eval "$(rbenv init -)"' >> $HOME/.bashrc
 ---> Using cache
 ---> bde5f876ba4f
Step 29/45 : RUN rbenv install 2.3.0
 ---> Using cache
 ---> 4a6f74df5629
Step 30/45 : RUN rbenv global 2.3.0
 ---> Using cache
 ---> bb01c90f806c
Step 31/45 : RUN gem install bundler
 ---> Using cache
 ---> 6ef426968154
Step 32/45 : WORKDIR /tmp
 ---> Using cache
 ---> e611be2cb5eb
Step 33/45 : ADD app/Gemfile Gemfile
 ---> Using cache
 ---> c7fa32836b49
Step 34/45 : ADD app/Gemfile.lock Gemfile.lock
 ---> Using cache
 ---> ce773a4df4bc
Step 35/45 : ADD bundle.sh bundle.sh
 ---> aa196782f920
Removing intermediate container 0cb1e8f6b588
Step 36/45 : RUN bash bundle.sh
 ---> Running in 8f10ab2b7dc4
bundle.sh: line 14: syntax error: unexpected end of file
ERROR: Service 'web' failed to build: The command '/bin/sh -c bash bundle.sh' returned a non-zero code: 2
kmadhusudhan commented 7 years ago

open web/Dockerfile , replace RUN bundle bundle install --jobs 4 with RUN bash bundle.sh

omarkurt commented 7 years ago

Thanks for reply.

Pre edit :

#RUN bundle install
RUN bash bundle.sh
RUN apt-get install python-pip -y
RUN pip install -I GitPython==2.1.1
RUN apt-get install nmap -y

After editing :

RUN bundle install
RUN bash bundle.sh
RUN apt-get install python-pip -y
RUN pip install -I GitPython==2.1.1
RUN apt-get install nmap -y

Works! So much Thx @KMadhuSudhan.