forked from external-repos/velociraptor-docker
Merge pull request #4 from koalaeagle/master
Change mv action of client binaries to rsync -a
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
LABEL version="Velociraptor v0.5.1"
|
LABEL version="Velociraptor v0.6.1"
|
||||||
LABEL description="Velociraptor server in a Docker container"
|
LABEL description="Velociraptor server in a Docker container"
|
||||||
LABEL maintainer="Wes Lambert, @therealwlambert"
|
LABEL maintainer="Wes Lambert, @therealwlambert"
|
||||||
ENV VERSION="0.5.1"
|
ENV VERSION="0.6.1"
|
||||||
COPY ./entrypoint .
|
COPY ./entrypoint .
|
||||||
RUN chmod +x entrypoint && \
|
RUN chmod +x entrypoint && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y curl wget jq && \
|
apt-get install -y curl wget jq rsync && \
|
||||||
# Create dirs for Velo binaries
|
# Create dirs for Velo binaries
|
||||||
mkdir -p /opt/velociraptor && \
|
mkdir -p /opt/velociraptor && \
|
||||||
for i in linux mac windows; do mkdir -p /opt/velociraptor/$i; done && \
|
for i in linux mac windows; do mkdir -p /opt/velociraptor/$i; done && \
|
||||||
|
@@ -10,9 +10,9 @@ CLIENT_DIR="/velociraptor/clients"
|
|||||||
|
|
||||||
# Move binaries into place
|
# Move binaries into place
|
||||||
cp /opt/velociraptor/linux/velociraptor . && chmod +x velociraptor
|
cp /opt/velociraptor/linux/velociraptor . && chmod +x velociraptor
|
||||||
mkdir -p $CLIENT_DIR/linux && cp /opt/velociraptor/linux/velociraptor /velociraptor/clients/linux/velociraptor_client
|
mkdir -p $CLIENT_DIR/linux && rsync -a /opt/velociraptor/linux/velociraptor /velociraptor/clients/linux/velociraptor_client
|
||||||
mkdir -p $CLIENT_DIR/mac && mv /opt/velociraptor/mac/velociraptor_client /velociraptor/clients/mac/velociraptor_client
|
mkdir -p $CLIENT_DIR/mac && rsync -a /opt/velociraptor/mac/velociraptor_client /velociraptor/clients/mac/velociraptor_client
|
||||||
mkdir -p $CLIENT_DIR/windows && mv /opt/velociraptor/windows/velociraptor_client* /velociraptor/clients/windows/
|
mkdir -p $CLIENT_DIR/windows && rsync -a /opt/velociraptor/windows/velociraptor_client* /velociraptor/clients/windows/
|
||||||
|
|
||||||
# If no existing server config, set it up
|
# If no existing server config, set it up
|
||||||
if [ ! -f server.config.yaml ]; then
|
if [ ! -f server.config.yaml ]; then
|
||||||
|
Reference in New Issue
Block a user