Sign inSign up

openeuler/apr-util

Sponsored OSS

By openeuler

Updated 1 day ago

Image
0

5.7K

openeuler/apr-util repository overview

Quick reference

APR-util (Apache Portable Runtime Utilities) | 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

TagCurrentlyArchitectures
1.6.5-oe2403sp4apr 1.6.5 on openEuler 24.03-LTS-SP4amd64, arm64
1.6.3-oe2403sp4apr 1.6.3 on openEuler 24.03-LTS-SP4amd64, arm64
1.6.3-oe2403sp3apr 1.6.3 on openEuler 24.03-LTS-SP3amd64, arm64
1.6.3-oe2403sp1APR-util 1.6.3 on openEuler 24.03-LTS-SP1amd64, arm64

Usage

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
    

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Tag summary

Content type

Image

Digest

sha256:de3477b3a

Size

223 MB

Last updated

1 day ago

docker pull openeuler/apr-util

This week's pulls

Pulls:

15

Last week