Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #92 from nre-learning/copy-permissions
Browse files Browse the repository at this point in the history
Setting proper permissions on copied lesson dir, using config'd location
  • Loading branch information
Mierdin authored Mar 20, 2019
2 parents 881a71b + 7ce851a commit da4a81b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Removed subnet requirement in lesson defs [#88](https://github.com/nre-learning/syringe/pull/88)
- Added validation for making sure configs are present for each stage and device [#89](https://github.com/nre-learning/syringe/pull/89)
- Add version to build info, share with syrctl [#90](https://github.com/nre-learning/syringe/pull/90)
- Setting proper permissions on copied lesson dir, using config'd location [#92](https://github.com/nre-learning/syringe/pull/92)

## v0.3.0 - February 11, 2019

Expand Down
13 changes: 6 additions & 7 deletions scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,14 @@ func (ls *LessonScheduler) getVolumesConfiguration() ([]corev1.Volume, []corev1.
Name: "copy-local-files",
Image: "bash",
Command: []string{
"cp",
"bash",
},
Args: []string{
"-r",
"/antidote-ro/lessons/",
"/antidote",
// "-r",
// fmt.Sprintf("%s-ro/*", ls.SyringeConfig.LessonRepoDir),
// ls.SyringeConfig.LessonRepoDir,
"-c",
fmt.Sprintf("cp -r %s-ro/lessons/ %s && adduser -D antidote && chown -R antidote:antidote %s",
ls.SyringeConfig.LessonRepoDir,
ls.SyringeConfig.LessonRepoDir,
ls.SyringeConfig.LessonRepoDir),
},
VolumeMounts: []corev1.VolumeMount{
{
Expand Down

0 comments on commit da4a81b

Please # to comment.