Code Monkey home page Code Monkey logo

docker-run's People

Contributors

dependabot[bot] avatar jackton1 avatar renovate[bot] avatar repo-ranger[bot] avatar tj-actions-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-run's Issues

Multiple steps using the same image

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

I need to run two commands using the same image. But the second one of those two steps failed with an error.

To Reproduce

If you use the Using an image from a registry example from readme but copy it to use the same image twice it will likely cause the same errror.

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-22.04

Expected behavior?

No error.

Relevant log output

docker: Error response from daemon: Conflict. The container name "/<redacted>" is already in use by container "<redacted>". You have to remove (or rename) that container to be able to reuse that name.


### Has all relevant logs been included?

- [X] I've included all relevant logs

### Anything else?

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

[Feature] possibility to set platform

Is your feature request related to a problem? Please describe.

I would like to run with option --platform

Describe the solution you'd like?

I would like to run with option --platform

Describe alternatives you've considered?

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature] Make input "args" optional

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like?

When running a docker container, it will not always be required to run a command.

Take this example:

      - name: 'Start service container'
        id: start
        run: 'docker run --detach --rm --name ${{ steps.setup.outputs.repository_name }} --network ${{ steps.setup.outputs.github_network }} --network-alias ${{ steps.setup.outputs.repository_name }} --publish 8003:80 --health-cmd "curl -s -I -L -o /dev/null -X POST --url "http://localhost/checks/connection-check/"" --health-interval 10s --health-timeout 5s --health-retries 5 --env "HEALTH_CHECK_TOKEN=${{ secrets.HEALTH_CHECK_TOKEN }}" --env "GITHUB_ACTIONS=true" --env "CI=true" ${{ steps.setup.outputs.repository_owner }}/${{ steps.setup.outputs.repository_name }}:latest'
        shell: bash

      - name: 'Wait for service to be ready'
        id: wait
        timeout-minutes: 1
        run: 'while [ "$( docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" ${{ steps.setup.outputs.repository_name }} )" == "starting" ]; do sleep 1s; done;'
        shell: bash

This docker container will be running on the workflow and available to be used in other steps as a service.

P.S.:
Notice the step to ensure the docker container will be ready to be used in the next steps. This should also be considered in this action.

Describe alternatives you've considered?

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/auto-approve.yml
  • hmarr/auto-approve-action v3
.github/workflows/greetings.yml
  • actions/first-interaction v1
.github/workflows/rebase.yml
  • actions/checkout v4
  • cirrus-actions/rebase 1.8
.github/workflows/sync-release-version.yml
  • actions/checkout v4
  • tj-actions/release-tagger v4
  • tj-actions/sync-release-version v13
  • tj-actions/git-cliff v1
  • peter-evans/create-pull-request v5
.github/workflows/test.yml
  • actions/checkout v4
  • reviewdog/action-shellcheck v1
  • docker/setup-qemu-action v2.2.0
  • docker/setup-buildx-action v3.0.0
  • docker/build-push-action v5
.github/workflows/update-readme.yml
  • actions/checkout v4
  • tj-actions/auto-doc v3
  • tj-actions/remark v3
  • tj-actions/verify-changed-files v16
  • peter-evans/create-pull-request v5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.