mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
Merge pull request #1833 from tlaurion/fix_git-dubious-ownership-in-repository
Docker image 0.2.4: Fix git dubious ownership in repository
This commit is contained in:
commit
3ac02e72c8
@ -45,7 +45,7 @@ commands:
|
|||||||
jobs:
|
jobs:
|
||||||
prep_env:
|
prep_env:
|
||||||
docker:
|
docker:
|
||||||
- image: tlaurion/heads-dev-env:v0.2.3
|
- image: tlaurion/heads-dev-env:v0.2.4
|
||||||
resource_class: large
|
resource_class: large
|
||||||
working_directory: ~/heads
|
working_directory: ~/heads
|
||||||
steps:
|
steps:
|
||||||
@ -115,7 +115,7 @@ jobs:
|
|||||||
|
|
||||||
build_and_persist:
|
build_and_persist:
|
||||||
docker:
|
docker:
|
||||||
- image: tlaurion/heads-dev-env:v0.2.3
|
- image: tlaurion/heads-dev-env:v0.2.4
|
||||||
resource_class: large
|
resource_class: large
|
||||||
working_directory: ~/heads
|
working_directory: ~/heads
|
||||||
parameters:
|
parameters:
|
||||||
@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: tlaurion/heads-dev-env:v0.2.3
|
- image: tlaurion/heads-dev-env:v0.2.4
|
||||||
resource_class: large
|
resource_class: large
|
||||||
working_directory: ~/heads
|
working_directory: ~/heads
|
||||||
parameters:
|
parameters:
|
||||||
@ -164,7 +164,7 @@ jobs:
|
|||||||
|
|
||||||
save_cache:
|
save_cache:
|
||||||
docker:
|
docker:
|
||||||
- image: tlaurion/heads-dev-env:v0.2.3
|
- image: tlaurion/heads-dev-env:v0.2.4
|
||||||
resource_class: large
|
resource_class: large
|
||||||
working_directory: ~/heads
|
working_directory: ~/heads
|
||||||
steps:
|
steps:
|
||||||
|
@ -139,15 +139,17 @@
|
|||||||
-e ACLOCAL_PATH \
|
-e ACLOCAL_PATH \
|
||||||
${self.devShell.${system}} >/devenv.sh
|
${self.devShell.${system}} >/devenv.sh
|
||||||
|
|
||||||
# Git configuration for safe directory access.
|
|
||||||
printf '[safe]\n\tdirectory = *\n' >/.gitconfig
|
|
||||||
mkdir /tmp; # Temporary directory for various operations.
|
mkdir /tmp; # Temporary directory for various operations.
|
||||||
|
chmod 1777 /tmp
|
||||||
|
|
||||||
# Ensure /etc/passwd and /etc/group exist with root entries
|
# Ensure /etc/passwd and /etc/group exist with root entries
|
||||||
echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd
|
echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd
|
||||||
echo "root:x:0:" > /etc/group
|
echo "root:x:0:" > /etc/group
|
||||||
mkdir -p /root
|
mkdir -p /root
|
||||||
chmod 700 /root
|
chmod 700 /root
|
||||||
|
|
||||||
|
# Git configuration for safe directory access.
|
||||||
|
echo -e '[safe]\n\tdirectory = *\n' > /root/.gitconfig
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user