Skip to content
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

Allow arbitrary --user values #161

Merged
merged 1 commit into from
May 13, 2016
Merged

Conversation

tianon
Copy link
Member

@tianon tianon commented Apr 15, 2016

@tianon
Copy link
Member Author

tianon commented Apr 15, 2016

According to https://www.mysql.com/support/eol-notice.html, we might technically be able to drop 5.5 as EOL as of today (although we're running it on Debian 7, which never was actually supported), but since it was pretty simple to make it work too, I just went for it.

@ltangvald
Copy link
Collaborator

5.5 is actually pretty nice to have in that upstream doesn't actually provide Debian/Ubuntu packages for it, so I'd think the ease of use/setup of the Docker image is a pretty big plus (though I have no usage numbers to back this up with :P)

@tianon
Copy link
Member Author

tianon commented Apr 18, 2016 via email

@ltangvald
Copy link
Collaborator

Oh, and change generally looks good to me, though I have to admit I haven't looked closely at gosu :)

@tianon
Copy link
Member Author

tianon commented Apr 18, 2016

It's conceptually really simple -- like sudo, but doesn't touch the TTY or stay resident, just setuid+setgid+setgroups+exec. 👍

@yosifkit
Copy link
Member

I think the main difference is that the initdb.d scripts will no longer be run as root; not sure if that will break too many users.

@yosifkit
Copy link
Member

LGTM. Should we merge?

@ltangvald
Copy link
Collaborator

Yeah, I think we can.
As an aside, I forgot to consider when I made the comment about 5.5 that since it was only available on Debian6, it'll no longer be updated for any Debian/Ubuntu platform so keeping it as it is wouldn't be a good idea (issue #168).

@yosifkit yosifkit merged commit 5296199 into docker-library:master May 13, 2016
@yosifkit yosifkit deleted the any-user branch May 13, 2016 21:11
tianon added a commit to infosiftr/stackbrew that referenced this pull request May 16, 2016
- `cassandra`: 3.0.6
- `mongo`: 3.3.6
- `mysql`: allow arbitrary `--user` (docker-library/mysql#161)
- `owncloud`: 8.2.5, 8.1.8, 8.0.13, 7.0.15
- `tomcat`: 9.0.0.M6, 8.5.2, 8.0.35
tianon added a commit to infosiftr/stackbrew that referenced this pull request May 17, 2016
- `cassandra`: 3.0.6
- `mongo`: 3.3.6
- `mysql`: allow arbitrary `--user` (docker-library/mysql#161)
- `owncloud`: 8.2.5, 8.1.8, 8.0.13, 7.0.15
- `tomcat`: 9.0.0.M6, 8.5.2, 8.0.35
RichardScothern pushed a commit to RichardScothern/official-images that referenced this pull request Jun 14, 2016
- `cassandra`: 3.0.6
- `mongo`: 3.3.6
- `mysql`: allow arbitrary `--user` (docker-library/mysql#161)
- `owncloud`: 8.2.5, 8.1.8, 8.0.13, 7.0.15
- `tomcat`: 9.0.0.M6, 8.5.2, 8.0.35
@tianon tianon mentioned this pull request Jun 16, 2016
lag-linaro pushed a commit to lag-linaro/fluentd-docker-image that referenced this pull request Nov 16, 2018
If permissions problems exist, they should be overcome properly.

For examples see:

  LINK: docker-library/rabbitmq#60
  LINK: docker-library/cassandra#48
  LINK: docker-library/mongo#81
  LINK: redis/docker-library-redis#48
  LINK: docker-library/mysql#161
  LINK: MariaDB/mariadb-docker#59
  LINK: docker-library/percona#21
  LINK: docker-library/ghost#54
  LINK: docker-library/postgres#253

As suggested by @tianon

  LINK: docker-library/official-images#3724 (comment)

This is part of an effort to make FluentD part of Docker's Official Images.

Signed-off-by: Lee Jones <[email protected]>
lag-linaro pushed a commit to lag-linaro/fluentd-docker-image that referenced this pull request Nov 19, 2018
If permissions problems exist, they should be overcome properly.

For examples see:

  LINK: docker-library/rabbitmq#60
  LINK: docker-library/cassandra#48
  LINK: docker-library/mongo#81
  LINK: redis/docker-library-redis#48
  LINK: docker-library/mysql#161
  LINK: MariaDB/mariadb-docker#59
  LINK: docker-library/percona#21
  LINK: docker-library/ghost#54
  LINK: docker-library/postgres#253

As suggested by @tianon

  LINK: docker-library/official-images#3724 (comment)

This is part of an effort to make FluentD part of Docker's Official Images.

Signed-off-by: Lee Jones <[email protected]>
lag-linaro pushed a commit to lag-linaro/fluentd-docker-image that referenced this pull request Nov 23, 2018
If permissions problems exist, they should be overcome properly.

For examples see:

  LINK: docker-library/rabbitmq#60
  LINK: docker-library/cassandra#48
  LINK: docker-library/mongo#81
  LINK: redis/docker-library-redis#48
  LINK: docker-library/mysql#161
  LINK: MariaDB/mariadb-docker#59
  LINK: docker-library/percona#21
  LINK: docker-library/ghost#54
  LINK: docker-library/postgres#253

As suggested by @tianon

  LINK: docker-library/official-images#3724 (comment)

This is part of an effort to make FluentD part of Docker's Official Images.

Signed-off-by: Lee Jones <[email protected]>
lag-linaro pushed a commit to lag-linaro/fluentd-docker-image that referenced this pull request Nov 30, 2018
If permissions problems exist, they should be overcome properly.

For examples see:

  LINK: docker-library/rabbitmq#60
  LINK: docker-library/cassandra#48
  LINK: docker-library/mongo#81
  LINK: redis/docker-library-redis#48
  LINK: docker-library/mysql#161
  LINK: MariaDB/mariadb-docker#59
  LINK: docker-library/percona#21
  LINK: docker-library/ghost#54
  LINK: docker-library/postgres#253

As suggested by @tianon

  LINK: docker-library/official-images#3724 (comment)

This is part of an effort to make FluentD part of Docker's Official Images.

Signed-off-by: Lee Jones <[email protected]>
lag-linaro pushed a commit to lag-linaro/fluentd-docker-image that referenced this pull request Dec 19, 2018
If permissions problems exist, they should be overcome properly.

For examples see:

  LINK: docker-library/rabbitmq#60
  LINK: docker-library/cassandra#48
  LINK: docker-library/mongo#81
  LINK: redis/docker-library-redis#48
  LINK: docker-library/mysql#161
  LINK: MariaDB/mariadb-docker#59
  LINK: docker-library/percona#21
  LINK: docker-library/ghost#54
  LINK: docker-library/postgres#253

As suggested by @tianon

  LINK: docker-library/official-images#3724 (comment)

This is part of an effort to make FluentD part of Docker's Official Images.

Signed-off-by: Lee Jones <[email protected]>
grooverdan referenced this pull request in MariaDB/mariadb-docker Dec 6, 2021
Report was:

In docker-entrypoint.sh line 67:
	mysql=( docker_process_sql )
        ^---^ SC2034: mysql appears unused. Verify use (or export if used externally).

In docker-entrypoint.sh line 81:
					. "$f"
                                          ^--^ SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.

In docker-entrypoint.sh line 149:
	if [ -z "$MARIADB_ROOT_PASSWORD" -a -z "$MARIADB_ALLOW_EMPTY_ROOT_PASSWORD" -a -z "$MARIADB_RANDOM_ROOT_PASSWORD" ]; then
                                         ^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
                                                                                    ^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.

In docker-entrypoint.sh line 228:
	passfileArgs=()
        ^----------^ SC2034: passfileArgs appears unused. Verify use (or export if used externally).

In docker-entrypoint.sh line 231:
		MYSQL_PWD= docker_exec_client "$@"
                          ^-- SC1007: Remove space after = if trying to assign a value (for empty string, use var='' ... ).

In docker-entrypoint.sh line 366:
			exec gosu mysql "$BASH_SOURCE" "$@"
                                         ^----------^ SC2128: Expanding an array without an index only gives the first element.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants