-
Notifications
You must be signed in to change notification settings - Fork 87
Убрал лишние pull, исправил форматирование #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/first-bit
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,14 +20,14 @@ if [ "${NO_CACHE}" = 'true' ] ; then | |
| fi | ||
|
|
||
| docker build \ | ||
| --pull \ | ||
| --pull \ | ||
| $no_cache_arg \ | ||
| --build-arg DOCKER_REGISTRY_URL=library \ | ||
| --build-arg DOCKER_REGISTRY_URL=library \ | ||
| --build-arg BASE_IMAGE=ubuntu \ | ||
| --build-arg BASE_TAG=20.04 \ | ||
| --build-arg ONESCRIPT_PACKAGES="yard" \ | ||
| -t ${DOCKER_REGISTRY_URL:+"$DOCKER_REGISTRY_URL/"}oscript-downloader:latest \ | ||
| -f oscript/Dockerfile \ | ||
| -f oscript/Dockerfile \ | ||
| $last_arg | ||
|
Comment on lines
22
to
31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Find all references to no_cache_arg in build scripts
rg -n '\bno_cache_arg\b' --glob 'build-*.sh'Repository: firstBitMarksistskaya/onec-docker Length of output: 467 🏁 Script executed: #!/bin/bash
# Read the build-base-swarm-jenkins-agent.sh file to see full context
cat -n build-base-swarm-jenkins-agent.sh | head -50Repository: firstBitMarksistskaya/onec-docker Length of output: 1887 🏁 Script executed: #!/bin/bash
# Check other build scripts that reference no_cache_arg
# Let's look at build-server.sh to see if it defines no_cache_arg
cat -n build-server.sh | head -35Repository: firstBitMarksistskaya/onec-docker Length of output: 1277 🏁 Script executed: #!/bin/bash
# Search for how no_cache_arg is defined in any of the scripts
rg -B 5 'no_cache_arg' build-*.sh | head -80Repository: firstBitMarksistskaya/onec-docker Length of output: 2145 🏁 Script executed: #!/bin/bash
# Let's check if no_cache_arg is defined anywhere in the entire file
grep -n 'no_cache_arg=' build-base-swarm-jenkins-agent.shRepository: firstBitMarksistskaya/onec-docker Length of output: 59 🏁 Script executed: #!/bin/bash
# Also check all build scripts to see if any of them define no_cache_arg
rg 'no_cache_arg\s*=' build-*.shRepository: firstBitMarksistskaya/onec-docker Length of output: 59 Define Line 24 references 🧩 Suggested fixlast_arg='.'
+no_cache_arg=''
if [ "${NO_CACHE}" = 'true' ] ; then
- last_arg='--no-cache .'
+ no_cache_arg='--no-cache'
fi🧰 Tools🪛 Shellcheck (0.11.0)[warning] 24-24: no_cache_arg is referenced but not assigned. (SC2154) 🤖 Prompt for AI Agents |
||
|
|
||
| docker build \ | ||
|
|
@@ -48,7 +48,6 @@ else | |
| fi | ||
|
|
||
| docker build \ | ||
| --pull \ | ||
| --build-arg ONEC_USERNAME=$ONEC_USERNAME \ | ||
| --build-arg ONEC_PASSWORD=$ONEC_PASSWORD \ | ||
| --build-arg ONEC_VERSION=$ONEC_VERSION \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,13 +20,13 @@ if [ "${NO_CACHE}" = 'true' ] ; then | |
| fi | ||
|
|
||
| docker build \ | ||
| --pull \ | ||
| --pull \ | ||
| $no_cache_arg \ | ||
| --build-arg DOCKER_REGISTRY_URL=library \ | ||
| --build-arg DOCKER_REGISTRY_URL=library \ | ||
| --build-arg BASE_IMAGE=eclipse-temurin \ | ||
| --build-arg BASE_TAG=17 \ | ||
| -t ${DOCKER_REGISTRY_URL:+"$DOCKER_REGISTRY_URL/"}oscript-jdk:latest \ | ||
| -f oscript/Dockerfile \ | ||
| -f oscript/Dockerfile \ | ||
| $last_arg | ||
|
Comment on lines
22
to
30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for no_cache_arg definition in build scripts
rg -n --glob 'build-*.sh' '\bno_cache_arg\b' -B 2 -A 2Repository: firstBitMarksistskaya/onec-docker Length of output: 2312 🏁 Script executed: #!/bin/bash
# Get the full build-oscript-swarm-agent.sh file to understand context
git ls-files | grep -E 'build-oscript-swarm-agent\.sh'Repository: firstBitMarksistskaya/onec-docker Length of output: 105 🏁 Script executed: #!/bin/bash
# Read the build-oscript-swarm-agent.sh file to check for no_cache_arg definition
cat -n build-oscript-swarm-agent.sh | head -50Repository: firstBitMarksistskaya/onec-docker Length of output: 1668 Define Lines 24 and 33 reference Suggested fix last_arg='.'
+no_cache_arg=''
if [ "${NO_CACHE}" = 'true' ] ; then
- last_arg='--no-cache .'
+ no_cache_arg='--no-cache'
fi🧰 Tools🪛 Shellcheck (0.11.0)[warning] 24-24: no_cache_arg is referenced but not assigned. (SC2154) 🤖 Prompt for AI Agents |
||
|
|
||
| docker build \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
например, вот здесь мы останемся на протухшем
FROM ubuntu:18.04для основного слояUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ок, но я не могу придумать простого способа обойти это, сохранив возможность собирать образы без Registry
вижу несколько вариантов:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Интересно, правда так можно?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
изучу, спасибо