sw360 / sw360chores

WARNING - Work in Progress - It is not Bug Free! Use with Caution. This repository contains Dockerfiles and accompanying scripts that allow deployment of sw360 via docker
Eclipse Public License 1.0
13 stars 18 forks source link

docker setup does not seem to run with macosx #52

Open mcjaeger opened 6 years ago

mcjaeger commented 6 years ago

it seems like on macosx (10.13.6), docker setup is not running:

lando:sw360chores-master sam$ docker -v
Docker version 18.06.1-ce, build e68fc7a
lando:sw360chores-master sam$ ./sw360chores.pl --build -- up
... the file liferay-portal-tomcat-6.2-ce-ga5-20151119152357409.zip already exists: skip
rm: /Users/sam/Downloads/sw360chores-master/_tmp/tmp.Dw9kEAC/sw360/webapps/docs: No such file or directory
rm: /Users/sam/Downloads/sw360chores-master/_tmp/tmp.Dw9kEAC/sw360/webapps/examples: No such file or directory
rm: /Users/sam/Downloads/sw360chores-master/_tmp/tmp.Dw9kEAC/sw360/webapps/host-manager: No such file or directory
rm: /Users/sam/Downloads/sw360chores-master/_tmp/tmp.Dw9kEAC/sw360/webapps/manager: No such file or directory
sed: 1: "/Users/sam/Downloads/sw ...": bad flag in substitute command: 's'
failed to prepare sw360empty at ./sw360chores.pl line 311.
lando:sw360chores-master sam$ 

which maybe a platform issue because of different paths in the prepare scripts.

greimela-si commented 5 years ago

The issue is that the MacOS sed is not the same as the GNU sed. I worked around this issue by installing gnu-sed using homebrew.