Skip to content

Commit

Permalink
Add workdir to dockerfiles
Browse files Browse the repository at this point in the history
- update docs to streamline use of workdir for the sake of clarity
  • Loading branch information
velomatt committed Jul 30, 2024
1 parent 4395e37 commit 2642327
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dss-sdk can be built with any of the below docker base images:
Example build using Ubuntu 22 base image:

```bash
docker run -w /${PWD##*/} -i -t --rm -v "$(pwd)":/${PWD##*/} ubuntu:22.04 /bin/bash
docker run -w /dss-sdk -i -t --rm -v "$(pwd)":/dss-sdk ubuntu:22.04 /bin/bash
./scripts/dependencies/install.sh
./scripts/build_all.sh kdd-samsung-remote
```
Expand All @@ -93,7 +93,7 @@ docker build -t dss-sdk:ubuntu22-master -f scripts/docker/ubuntu22.DOCKERFILE .
To build with the `dss-sdk:ubuntu22-master` image you have built, [as described above](#Create-a-dss-sdk-build-image-from-dockerfile):

```bash
docker run -w /${PWD##*/} -i -t --rm -v "$(pwd)":/${PWD##*/} dss-sdk:ubunu22-master ./scripts/build_all.sh kdd-samsung-remote
docker run -i -t --rm -v "$(pwd)":/dss-sdk dss-sdk:ubunu22-master ./scripts/build_all.sh kdd-samsung-remote
```

## Contributing
Expand Down
1 change: 1 addition & 0 deletions scripts/docker/centos7.DOCKERFILE
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ RUN set -eux \
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo \
&& DOCKER=true /dependencies/install.sh \
&& rm -rf /dependencies
WORKDIR /dss-sdk
1 change: 1 addition & 0 deletions scripts/docker/rocky8.DOCKERFILE
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ADD scripts/dependencies /dependencies
RUN set -eux \
&& DOCKER=true /dependencies/install.sh \
&& rm -rf /dependencies
WORKDIR /dss-sdk
1 change: 1 addition & 0 deletions scripts/docker/rocky9.DOCKERFILE
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ADD scripts/dependencies /dependencies
RUN set -eux \
&& DOCKER=true /dependencies/install.sh \
&& rm -rf /dependencies
WORKDIR /dss-sdk
1 change: 1 addition & 0 deletions scripts/docker/ubuntu22.DOCKERFILE
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ADD scripts/dependencies /dependencies
RUN set -eux \
&& DOCKER=true /dependencies/install.sh \
&& rm -rf /dependencies
WORKDIR /dss-sdk

0 comments on commit 2642327

Please sign in to comment.