Skip to content

Commit

Permalink
unify sedmachine and sedmachine.docker
Browse files Browse the repository at this point in the history
  • Loading branch information
capezotte committed May 23, 2024
1 parent 2a45874 commit 0c78dc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 76 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM alpine:latest
COPY ./sedmachine.docker /opt/sedmachine
RUN apk --no-cache add curl jq
COPY ./sedmachine /opt/sedmachine
COPY ./sed.docker /opt/sed-wrapper
RUN install -D /dev/null /var/cache/sm_offset
CMD ["sh","-c","while :; do /opt/sedmachine; done"]
CMD ["sh","-c","while :; do SED=/opt/sed-wrapper /opt/sedmachine; done"]

2 changes: 2 additions & 0 deletions sed.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/busybox sh
ulimit -u1 -n1 && exec sed "$@"
74 changes: 0 additions & 74 deletions sedmachine.docker

This file was deleted.

0 comments on commit 0c78dc8

Please sign in to comment.