Skip to content

Commit 13b6956

Browse files
authored
Fix issue with passing arguments to the script in the container (#768)
1 parent b1719bc commit 13b6956

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

server/Tingle.Dependabot/Workflow/UpdateRunner.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ public async Task CreateAsync(Repository repository, RepositoryUpdate update, Up
6161
var container = new ContainerInstanceContainer(UpdaterContainerName, image, new(job.Resources!));
6262
var env = CreateVariables(repository, update, job);
6363
foreach (var (key, value) in env) container.EnvironmentVariables.Add(new ContainerEnvironmentVariable(key) { Value = value, });
64-
65-
// prepare the container command
66-
container.Command.Add("bin/run.sh");
6764
container.Command.Add("update-script");
6865

6966
// prepare the container group

updater/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ RUN bundle config set --local path 'vendor' && \
1818
COPY --chown=dependabot:dependabot LICENSE $DEPENDABOT_HOME
1919
COPY --chown=dependabot:dependabot updater $DEPENDABOT_HOME/dependabot-updater
2020

21-
# This entrypoint exists to solve specific setup problems.
22-
# It is only used with the extension and directly on Docker.
23-
# Hosted version does not allow this.
24-
ENTRYPOINT ["bin/entrypoint.sh"]
25-
26-
CMD ["bin/run.sh"]
21+
# ENTRYPOINT IS USED instead of CMD so as to avoid adding
22+
# 'bin/run.sh' before the file name when running the image bef
23+
ENTRYPOINT ["bin/run.sh"]

updater/bin/entrypoint.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)