gitbeaker/docker-entrypoint.sh
2018-05-15 19:41:44 -04:00

24 lines
530 B
Bash
Executable File

#!/bin/sh
## Set GITLAB_URL ENV
# gitlab-rails console production
# ## Reset default password for root user
# u = User.first
# u.password_automatically_set = false
# u.password = 'password'
# u.password_confirmation = 'password'
# u.save!
# ## Create access token
# t = PersonalAccessToken.new({ user: u, name: 'node-gitlab', scopes: ['api']})
# t.save!
# ## Store access token in an ENV
# ENV['PERSONAL_ACCESS_TOKEN'] = t.token
# ## Exist rails console
# exit
ls
## Exec any other entry point logic
exec /assets/wrapper "$@"