{"id":18578933,"url":"https://github.com/libre-devops/cicd-base-images","last_synced_at":"2026-02-14T20:05:32.959Z","repository":{"id":221996404,"uuid":"755947238","full_name":"libre-devops/cicd-base-images","owner":"libre-devops","description":"A repo used to set the base images to be used in CICD 🏠","archived":false,"fork":false,"pushed_at":"2024-02-11T20:23:54.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T23:33:55.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libre-devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-11T14:54:53.000Z","updated_at":"2024-02-11T16:36:25.000Z","dependencies_parsed_at":"2024-11-06T23:39:49.703Z","dependency_job_id":"14c9d467-146f-4a11-817d-8dd53802fce4","html_url":"https://github.com/libre-devops/cicd-base-images","commit_stats":null,"previous_names":["libre-devops/cicd-base-images"],"tags_count":0,"template":false,"template_full_name":"libre-devops/terraform-module-template","purl":"pkg:github/libre-devops/cicd-base-images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fcicd-base-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fcicd-base-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fcicd-base-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fcicd-base-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libre-devops","download_url":"https://codeload.github.com/libre-devops/cicd-base-images/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fcicd-base-images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29454783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:38:19.623Z","updated_at":"2026-02-14T20:05:32.942Z","avatar_url":"https://github.com/libre-devops.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Packer Script Execution Guide\n\nThis guide provides instructions on setting up environment variables and running the `Run-Packer.ps1` PowerShell script for Packer operations.\n\n## Setting Environment Variables\n\nEnvironment variables are used to pass configuration options and settings to the PowerShell script. These variables can be set both locally (for the current PowerShell session) and system-wide.\n\n### Prerequisites\n\n- Administrative privileges are required to set system environment variables.\n- PowerShell must be run as an administrator to execute these scripts.\n\n### Populate Environment Variables for local env - Populate-LocalVars.ps1\n\nRun this PowerShell script to set the required environment variables.\n\nYou can run this script in a limited configuration, for example:\n\n```powershell\n# PowerShell script to set user-level environment variables with predefined values for Linux\n# Define a hashtable with key-value pairs for environment variables\n$predefinedVariableValues = @{\n    \"WORKING_DIRECTORY\" = \"example_working_directory\"\n    \"RUN_PACKER_BUILD\" = \"true\"\n    \"RUN_PACKER_VALIDATE\" = \"true\"\n    \"RUN_PACKER_INIT\" = \"true\"\n    \"ENABLE_DEBUG_MODE\" = \"true\"\n    \"PACKER_VERSION\" = \"latest\"\n    \"PKR_VAR_registry_username\" = \"example\"\n    \"PKR_VAR_registry_password\" = \"example\"\n}\n\n# Set each predefined variable\nforeach ($varName in $predefinedVariableValues.Keys) {\n    $value = $predefinedVariableValues[$varName]\n\n    if ($isLinux) {\n        # Ensure the PowerShell profile directory exists\n        $profileDirectory = [System.IO.Path]::GetDirectoryName($PROFILE)\n        if (-not (Test-Path $profileDirectory)) {\n            New-Item -ItemType Directory -Path $profileDirectory -Force\n        }\n\n        # Ensure the PowerShell profile file exists\n        if (-not (Test-Path $PROFILE)) {\n            New-Item -ItemType File -Path $PROFILE -Force\n        }\n\n        # Append to PowerShell profile and set in current session\n        $exportCommand = \"`n`$Env:$varName = `\"$value`\"\"\n        Add-Content -Path $PROFILE -Value $exportCommand\n        Set-Variable -Name $varName -Value $value -Scope Global\n    }\n    elseif ($IsMacOS)\n    {\n        # Ensure the PowerShell profile directory exists\n        $profileDirectory = [System.IO.Path]::GetDirectoryName($PROFILE)\n        if (-not (Test-Path $profileDirectory)) {\n            New-Item -ItemType Directory -Path $profileDirectory -Force\n        }\n\n        # Ensure the PowerShell profile file exists\n        if (-not (Test-Path $PROFILE)) {\n            New-Item -ItemType File -Path $PROFILE -Force\n        }\n\n        # Append to PowerShell profile and set in current session\n        $exportCommand = \"`n`$Env:$varName = `\"$value`\"\"\n        Add-Content -Path $PROFILE -Value $exportCommand\n        Set-Variable -Name $varName -Value $value -Scope Global\n    }\n    else {\n        # On other systems, set user environment variable\n        [System.Environment]::SetEnvironmentVariable($varName, $value, [System.EnvironmentVariableTarget]::User)\n    }\n}\n\nWrite-Host \"User-level environment variables have been set.\"\nWrite-Host \"Please close your powershell window and reopen to refresh environment\" -ForegroundColor Yellow\n```\n## Running the Script\n\nTo run the Run-Packer.ps1 script with the environment variables, use the following command in PowerShell:\n\n```powershell\n.\\Run-Packer.ps1 `\n-WorkingDirectory \"foo/bar\" `\n-RunPackerInit \"true\" `\n-RunPackerValidate \"true\"`\n-RunPackerBuild \"true\" `\n-DebugMode \"true\" `\n-PackerVersion \"latest\"`\n-PackerFileName \"packer.pkr.hcl `\n```\n\n### Post-Execution\n\n- After running the script, the Packer operations as specified by the parameters will be executed.\n- Remember that changes to system environment variables might require a system restart to be recognized by all applications.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fcicd-base-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibre-devops%2Fcicd-base-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fcicd-base-images/lists"}