Skip to content
Snippets Groups Projects
Commit 0b25bc39 authored by Ludovic Claude's avatar Ludovic Claude
Browse files

run runs, build builds

parent bc8ef11e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -e
if groups $USER | grep &>/dev/null '\bdocker\b'; then
DOCKER_COMPOSE="docker-compose"
else
DOCKER_COMPOSE="sudo docker-compose"
fi
# Create a symlink to the local Maven repository
[ -L .m2 ] || ln -s -t . ~/.m2
$DOCKER_COMPOSE --file=docker-compose.init.yml --project-name=portal-backend-init up
echo "Need to set the current user as owner of the files generated in target directory..."
sudo chown -R $USER:$USER ./target
cp target/mip.jar src/docker/build/
echo "Done"
$DOCKER_COMPOSE build
#!/bin/bash -e
# Run the backend in a Docker container and start the database.
# The current project is compiler inside the Docker container
if groups $USER | grep &>/dev/null '\bdocker\b'; then
DOCKER_COMPOSE="docker-compose"
else
DOCKER_COMPOSE="sudo docker-compose"
fi
$DOCKER_COMPOSE up
# Create a symlink to the local Maven repository
[ -L .m2 ] || ln -s -t . ~/.m2
$DOCKER_COMPOSE --file=docker-compose.init.yml --project-name=portal-backend-init up
echo "Need to set the current user as owner of the files generated in target directory..."
sudo chown -R $USER:$USER ./target
echo "Done"
*.jar
......@@ -7,6 +7,7 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/v0.2.0/dockerize
RUN tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.2.0.tar.gz
COPY mip.sh /opt/portal/
COPY mip.jar /opt/portal/lib/
RUN chmod +x /opt/portal/mip.sh
EXPOSE 8080
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment