The official APR-util (Apache Portable Runtime Utilities) docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current APR-util (Apache Portable Runtime Utilities) docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
APR-util (Apache Portable Runtime Utilities) is an extension library for APR (Apache Portable Runtime), providing additional cross-platform utility functions to complement APR's core features.
Learn more about APR-util on APR-util Website.
The tag of each apr-util docker image is consist of the version of apr-util and the version of basic image. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 1.6.5-oe2403sp4 | apr 1.6.5 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 1.6.3-oe2403sp4 | apr 1.6.3 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 1.6.3-oe2403sp3 | apr 1.6.3 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| 1.6.3-oe2403sp1 | APR-util 1.6.3 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
In this usage, users can select the corresponding {Tag} based on their requirements.
Pull the openeuler/apr-util image from docker
docker pull openeuler/apr-util:{Tag}
Run with an interactive shell
You can start the container with an interactive shell to run your own code using APR-util.
docker run -it --rm openeuler/apr-util:{Tag} bash
Example: A minimal APR-util program
Create a file named parse.c with the following content:
// parse.c
#include <apr_general.h>
#include <apr_uri.h>
#include <stdio.h>
int main() {
apr_initialize();
apr_pool_t *pool;
apr_pool_create(&pool, NULL);
apr_uri_t uri;
const char *url = "http://example.com/path?key=value";
if (apr_uri_parse(pool, url, &uri) == APR_SUCCESS) {
printf("Host: %s\n", uri.hostname);
} else {
printf("Parse failed\n");
}
apr_pool_destroy(pool);
apr_terminate();
return 0;
}
Compile the program:
gcc parse.c -o parse \
-I/usr/local/apr/include/apr-1 \
-I/usr/include/apr-util-1 \
-L/usr/local/apr/lib \
-lapr-1 -laprutil-1
Run the program
$ ./parse
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:de3477b3a…
Size
223 MB
Last updated
1 day ago
docker pull openeuler/apr-utilPulls:
15
Last week